《操作系统》的实验代码。
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.

9 lines
169 B

  1. all:toy
  2. toy.o: toy.S
  3. as -o toy.o toy.S
  4. toy: toy.o
  5. ld --oformat binary -N -e start -Ttext 0x7c00 -o toy toy.o
  6. run: toy
  7. qemu-system-i386 -fda toy
  8. clean:
  9. rm toy.o toy