Bochs调试MBR:
创建一个asm MBR程序,编译后将bin文件扩展名改为img
1. 创建一个配置文件(bochsrc_mbr.bxrc)
# how much memory the emulated machine will have
megs: 256
floppya: 1_44=a.img, status=inserted
boot: floppy
2.创建bat文件:
set BXSHARE="C:\Program Files (x86)\Bochs-2.6"
%BXSHARE%\bochsdbg.exe -q -f bochsrc_mbr.bxrc
3.运行bat文件后进入Bochs:
加断点:
b 0x7c00
继续运行:
c