test codeP
This commit is contained in:
parent
64c5b7adba
commit
c15eecde33
15
Makefile
Normal file
15
Makefile
Normal 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
14
boot/boot.s
Normal 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
|
Loading…
Reference in New Issue
Block a user