diff --git a/.gitignore b/.gitignore index 18f191d..90ed266 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1 @@ -boot \ No newline at end of file +boot.bin \ No newline at end of file diff --git a/boot.asm b/boot.asm index 8db7b08..da7b5cf 100644 --- a/boot.asm +++ b/boot.asm @@ -4,3 +4,4 @@ halt: jmp halt times 510-($-$$) db 0 +db 0x55, 0xaa \ No newline at end of file diff --git a/makefile b/makefile index 9384f4c..f182b6d 100644 --- a/makefile +++ b/makefile @@ -1,2 +1,8 @@ -boot: boot.asm - nasm boot.asm +boot.bin: boot.asm + nasm -o boot.bin boot.asm + +run: boot.bin + qemu-system-x86_64 boot.bin + +clean: + rm boot.bin \ No newline at end of file