Debugger now stops on undefined opcodes, as well as on unknown I/O accesses

This commit is contained in:
Jeff Parsons 2016-10-15 11:32:51 -07:00 committed by Jeff Parsons
commit c14f919f4f
5 changed files with 232 additions and 195 deletions

View file

@ -1763,6 +1763,9 @@ PDP11.opXOR = function(opCode)
*/
PDP11.opUndefined = function(opCode)
{
if (DEBUGGER && this.dbg) {
this.dbg.undefinedInstruction(opCode);
}
this.trap(PDP11.TRAP.RESERVED, PDP11.REASON.RESERVED);
};