《操作系统》的实验代码。
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12 lines
280 B

  1. all:pmboot
  2. pmboot.s: pmboot.S
  3. gcc -E pmboot.S > pmboot.s
  4. pmboot.o: pmboot.s
  5. as -o pmboot.o pmboot.s
  6. pmboot: pmboot.o
  7. ld --oformat binary -N -e start -Ttext 0x7c00 -o pmboot pmboot.o
  8. run: pmboot
  9. qemu-system-i386 -fda pmboot
  10. .PHONY: clean
  11. clean:
  12. rm pmboot.o pmboot pmboot.s