windows7 下 Bochs 运行 helloworld

http://blog.csdn.net/pandora_madara/article/details/50188175

http://blog.luoyuanhang.com/2015/08/04/【从头开始写操作系统系列】环境搭建以及第一个Hello World/


感谢以上文章


安装nasm、bochs、dd,加入环境变量,使cmd可以识别。(dd是windows下模拟linux指令dd)

剩下与http://blog.csdn.net/pandora_madara/article/details/50188175步骤一致。

注意,修改这里

#how much memory the emulated machine will have
megs:4

#filename of ROM images
romimage:file="D:\Program Files\Bochs-2.6.8\BIOS-bochs-latest",address=Oxf0000
vgaromimage:file="D:\Program Files\Bochs-2.6.8\VGABIOS-elpin-2.40"

#what disk images will be used
floppya:1_44=Hello.img,status=inserted

#Choose the boot disk
boot:a

#where do we send log messages?
log:bochsout.txt


改名为bochsrc.bxrc即可以了。



最后,可以使用bochs直接编译linux内核成img文件,按下不谈。



你可能感兴趣的:(windows,操作系统,helloworld,bochs)