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

@ -1631,11 +1631,12 @@ if (DEBUGGER) {
*
* @this {DebuggerPDP11}
* @param {number} opCode
* @return {boolean} true if stopping is enabled, false if not
*/
DebuggerPDP11.prototype.undefinedInstruction = function(opCode)
{
this.printMessage("undefined opcode " + this.toStrBase(opCode), true, true);
this.stopInstruction(); // allow the caller to step over it if they really want a trap generated
return this.stopInstruction(); // allow the caller to step over it if they really want a trap generated
};
/**