test codeP

This commit is contained in:
spikey 2024-02-17 12:56:38 -05:00
parent 64c5b7adba
commit c15eecde33
2 changed files with 29 additions and 0 deletions

15
Makefile Normal file
View File

@ -0,0 +1,15 @@
SRC=$(wildcard src/*.c)
BOOT=$(wildcard boot/*.s)
INCLUDE=include/
FLAGS=-g -Wall -Wextra -Ffreestanding -m32
BIN=boot.img
all: boot
$(CC) $(FLAGS) $(SRC) -I $(INCLUDE) -o $(BIN)
boot:
nasm -Fl32
install: all
./installgrub.sh

14
boot/boot.s Normal file
View File

@ -0,0 +1,14 @@
mov ah, 0x0e
mov al, 'H'
int 0x10
mov al, 'E'
int 0x10
mov al, 'Y'
int 0x10
cli
hlt
times 510 - ($ - $$) db 0
dw 0xaa55