1.主要配置
MEGS
Set the number of Megabytes of physical memory you want to emulate.
=============================================================================
- The default is 32MB, most OS's won't need more than that.
- The maximum amount of memory supported is 2048MB.
- The 'MEGS' option is deprecated. Use 'MEMORY' option instead.
- Such as
megs: 256
megs: 128
megs: 64
megs: 32
megs: 16
megs: 8
ROMIMAGE
The ROM BIOS controls what the PC does when it first powers on.
=============================================================================
- Normally, you can use a precompiled BIOS in the source or binary
distribution called BIOS-bochs-latest. - The ROM BIOS is usually loaded starting at address 0xF0000, and it is
exactly 64K long. - Another option is 128k BIOS which is loaded at address 0xE0000.
- You can also use the environment variable $BXSHARE to specify the
location of the BIOS. - The usage of external large BIOS images (up to 512K) at memory top is
now supported, but we still recommend to use the BIOS distributed with Bochs.
The start address optional, since it can be calculated from image size. - Such as
romimage: file=$BXSHARE/BIOS-bochs-latest
romimage: file=bios/seabios-1.6.3.bin
romimage: file=mybios.bin, address=0xfff80000 # 512k at memory top
=============================================================================
BOOT
Defines the boot sequence.
=============================================================================
- Now you can specify up to 3 boot drives, which can be 'floppy', 'disk', 'cdrom'
or 'network' (boot ROM). - Legacy 'a' and 'c' are also supported.
- Such as
boot: floppy
boot: cdrom, disk
boot: network, disk
boot: cdrom, floppy, disk
boot: floppy
boot: disk
=============================================================================
2.常用调试命令
- help‘command' 显示某条命令的详细用法
- b|pb‘address’ 设置断点
- s 单步执行
- s n执行 n步
- c 持续执行
- u‘start'‘end’反汇编某个地址段