在想调试的程序处添加一句xchg bx,bx,然后在Bochsrc.bxrc文件里添加一句magic_break:
enabled=1,然后选择调试启动Bochs虚拟机,当执行到xchg bx,bx指令时就会自动断到Bochsdbg里。
这种方法在Bochsrc_sample.txt文件里有介绍,但我想很多人都跟我一样没仔细看:-)
u /45 disassemble 反汇编45条指令
x /32xb es:edi - 16 <---查看es:di 前后的内容
x /13xcb es:ei - 11 <---显示字符
2011/4/11 zhuzhu config <confi...@gmail.com>:
> 我想在freedos中使用DOS的debug命令,却发现不得,提示没有这个命令,我翻了很多资料都没有提到freedos中的调试命令。请问大侠,如何在freedos中调试程序?
>
> --
> You received this message because you are subscribed to the Google
> Groups "自己动手写操作系统" group.
> To post to this group, send email to osfrom...@googlegroups.com
> To unsubscribe from this group, send email to
> osfromscratc...@googlegroups.com
> For more options, visit this group at
> https://groups.google.com/group/osfromscratch?hl=en
>
--