test codeP
This commit is contained in:
parent
64c5b7adba
commit
c15eecde33
|
@ -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
|
||||
|
|
@ -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
|
Loading…
Reference in New Issue