add a "I'm bootable" msg at top

This commit is contained in:
dzwdz 2021-08-16 19:19:47 +02:00
parent 3fe0dccba6
commit cdaa4d1c68
2 changed files with 7 additions and 1 deletions

View File

@ -4,9 +4,11 @@ boot.bin: boot.o
boot.o: boot.s
as -o $@ $<
.PHONY: boot disasm
.PHONY: boot disasm hexdump
boot: boot.bin
qemu-system-i386 -drive file=$^,index=0,if=floppy,format=raw
disasm: boot.bin
objdump -D -b binary -mi8086 $^
hexdump: boot.bin
hexdump $^ -C

4
boot.s
View File

@ -2,6 +2,10 @@
.global _start # the linker needs to find it
_start:
jmp _real_start
.ascii "I'm bootable!"
_real_start:
# enter mode 13h
mov $0x13, %ax
int $0x10