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

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