Made some progress with DEC's "TRAP TEST", but looks like it still needs some work
This commit is contained in:
parent
eb6bf8a5a5
commit
db63c30c1e
24 changed files with 1252 additions and 555 deletions
|
|
@ -1400,7 +1400,7 @@ if (DEBUGGER) {
|
|||
var trapStatus = this.cpu.getTrapStatus();
|
||||
if (trapStatus) {
|
||||
var trapReason = trapStatus >> 8;
|
||||
var sReason = trapReason? (" (" + this.toStrBase(trapReason) + ")") : "";
|
||||
var sReason = trapReason? (" (" + trapReason + ")") : "";
|
||||
this.println("trapped to " + this.toStrBase(trapStatus & 0xff, 1) + sReason);
|
||||
}
|
||||
|
||||
|
|
@ -1724,8 +1724,11 @@ if (DEBUGGER) {
|
|||
*/
|
||||
DebuggerPDP11.prototype.undefinedInstruction = function(opCode)
|
||||
{
|
||||
this.printMessage("undefined opcode " + this.toStrBase(opCode), true, true);
|
||||
return this.stopInstruction(); // allow the caller to step over it if they really want a trap generated
|
||||
if (this.messageEnabled(MessagesPDP11.CPU)) {
|
||||
this.printMessage("undefined opcode " + this.toStrBase(opCode), true, true);
|
||||
return this.stopInstruction(); // allow the caller to step over it if they really want a trap generated
|
||||
}
|
||||
return false;
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue