From c15eecde332f2e7dec5edb94c442ef1154884498 Mon Sep 17 00:00:00 2001 From: spikey Date: Sat, 17 Feb 2024 12:56:38 -0500 Subject: [PATCH] test codeP --- Makefile | 15 +++++++++++++++ boot/boot.s | 14 ++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 Makefile create mode 100644 boot/boot.s diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..050746b --- /dev/null +++ b/Makefile @@ -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 + diff --git a/boot/boot.s b/boot/boot.s new file mode 100644 index 0000000..5d24aae --- /dev/null +++ b/boot/boot.s @@ -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