Debugger improvements for DOS debugging

This commit is contained in:
Jeff Parsons 2014-11-07 15:04:25 -08:00 committed by jeffpar
commit ebf6933536
3 changed files with 334 additions and 293 deletions

View file

@ -924,11 +924,10 @@ X86CPU.prototype.checkIntNotify = function(nInt)
}
else if (DEBUGGER && this.aFlags.fDebugCheck) {
/*
* Enabling MESSAGE_INT messages is one of the criteria that's also included in fDebugCheck, so for maximum
* speed, we check fDebugCheck first.
* Enabling MESSAGE_INT messages is one of the criteria that's also included in fDebugCheck,
* so for maximum speed, we check fDebugCheck first.
*/
if (this.dbg.messageEnabled(Debugger.MESSAGE_INT)) {
this.dbg.messageInt(nInt, this.regEIP);
if (this.dbg.messageEnabled(Debugger.MESSAGE_INT) && this.dbg.messageInt(nInt, this.regEIP)) {
this.addIntReturn(this.regEIP, function(cpu, nCycles) {
return function onIntReturn(nLevel) {
cpu.dbg.messageIntReturn(nInt, nLevel, cpu.getCycles() - nCycles);