windows下bochs调试环境的创建

来源:互联网 发布:软件无线通信 芯片 编辑:程序博客网 时间:2024/05/01 05:31

  参考dlxlinux的配置文件 和 一个操作系统的实现一书 来配置bochs

配置文件如下:

 ###############################################################

# bochsrc.txt file for DLX Linux disk image.
###############################################################


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


# filename of ROM images
romimage: file=../BIOS-bochs-latest   
vgaromimage: file=../VGABIOS-lgpl-latest


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






# choose the boot disk.
boot: floppy


# default config interface is textconfig.
#config_interface: textconfig
#config_interface: wx


#display_library: x
# other choices: win32 sdl wx carbon amigaos beos macintosh nogui rfb term svga


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


# disable the mouse, since DLX is text only
mouse: enabled=0


# enable key mapping, using US layout as default.
#
# NOTE: In Bochs 1.4, keyboard mapping is only 100% implemented on X windows.
# However, the key mapping tables are used in the paste function, so 
# in the DLX Linux example I'm enabling keyboard_mapping so that paste 
# will work.  Cut&Paste is currently implemented on win32 and X windows only.


keyboard_mapping: enabled=1, map=$BXSHARE/keymaps/x11-pc-us.map
#keyboard_mapping: enabled=1, map=$BXSHARE/keymaps/x11-pc-fr.map
#keyboard_mapping: enabled=1, map=$BXSHARE/keymaps/x11-pc-de.map
#keyboard_mapping: enabled=1, map=$BXSHARE/keymaps/x11-pc-es.map

调试只需要再加一个bat为后缀的文件如下:

文件内容:

"F:\Bochs-2.4.6\bochsdbg" -q -f bochsrc.bxrc

F是安装目录。

注意:需将文件夹放在与dlxlinux同一个目录下,才可。


双击配置文件即可进行调试。

原创粉丝点击