Debugger now actually prevents an undefined opcode from executing (until/unless you single-step it)

This commit is contained in:
Jeff Parsons 2016-10-15 11:59:48 -07:00 committed by Jeff Parsons
commit 1e080e720e
3 changed files with 11 additions and 10 deletions

View file

@ -1764,7 +1764,7 @@ PDP11.opXOR = function(opCode)
PDP11.opUndefined = function(opCode)
{
if (DEBUGGER && this.dbg) {
this.dbg.undefinedInstruction(opCode);
if (this.dbg.undefinedInstruction(opCode)) return;
}
this.trap(PDP11.TRAP.RESERVED, PDP11.REASON.RESERVED);
};