A toy protect-mode bootloader can display string in real/protect mode of x86.

This commit is contained in:
yuchen
2015-03-13 22:44:25 +08:00
parent e2a6da26b1
commit 7d29eb7cf0
3 changed files with 101 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
all:pmboot
pmboot.s: pmboot.S
gcc -E pmboot.S > pmboot.s
pmboot.o: pmboot.s
as -o pmboot.o pmboot.s
pmboot: pmboot.o
ld --oformat binary -N -e start -Ttext 0x7c00 -o pmboot pmboot.o
run: pmboot
qemu-system-i386 -fda pmboot
.PHONY: clean
clean:
rm pmboot.o pmboot pmboot.s