nasm boot.asm -o boot.bin 生成512字节boot.bin
我将boot.asm改写成AT&T格式,改名boot.s
然后 as boot.s -o boot.o 结果生成1060字节boot.o这下就不知道怎么把它作成启动盘了
makefile如下,bochs说没有 启动设备,原先用boot.bin做可以搞定的。。
boot.o:boot.s
as boot.s -o boot.o
clean:
rm boot.o
install:
dd if=boot.o of=chobits.img bs=512 count=1 conv=notrunc
bochs:
bochs -qf chobits.bxrc
------解决方案--------------------------------------------------------
as boot.s -o boot.o
ld boot.o -o boot -Ttext 0x0 --oformat binary