add a toy bootloader in real mode of x86

This commit is contained in:
yuchen
2015-03-13 21:59:52 +08:00
parent 6770c2a473
commit de888683e8
3 changed files with 47 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
all:toy
toy.o: toy.S
as -o toy.o toy.S
toy: toy.o
ld --oformat binary -N -e start -Ttext 0x7c00 -o toy toy.o
run: toy
qemu-system-i386 -fda toy
clean:
rm toy.o toy