Code cleanup

This commit is contained in:
Jeff 2017-03-09 17:49:54 -08:00 • committed by Jeff Parsons
commit 3a9cd5cf04
24 changed files with 17 additions and 33 deletions

View file

@ -418,7 +418,6 @@ class ComputerPDP10 extends Component {
}
}
if (DEBUG && this.messageEnabled()) this.printMessage("ComputerPDP10.wait(ready)");
//noinspection JSUnresolvedFunction
fn.call(this, parms);
}

View file

@ -2341,7 +2341,7 @@ PDP10.opPUSHJ = function(op, acc)
PDP10.opPUSH = function(op, acc)
{
var p = this.readWord(acc);
if (!SIMH) {
if (!PDP10.SIMH) {
/*
* This is the behavior that is clearly documented by DEC.
*/

View file

@ -2812,7 +2812,6 @@ class DebuggerPDP10 extends Debugger {
if (w === undefined) break;
w = this.validateWord(w);
this.println("changing " + this.toStrAddr(dbgAddr) + " from " + this.toStrWord(fnGet.call(this, dbgAddr)) + " to " + this.toStrWord(w));
//noinspection JSUnresolvedFunction
fnSet.call(this, dbgAddr, w, 1);
}
}

View file

@ -275,11 +275,13 @@ var PDP10 = {
PDP10.APPCLASS = APPCLASS;
PDP10.APPNAME = APPNAME;
PDP10.DEBUGGER = DEBUGGER;
PDP10.SIMH = SIMH;
if (NODE) {
global.APPCLASS = APPCLASS;
global.APPNAME = APPNAME;
global.DEBUGGER = DEBUGGER;
global.SIMH = SIMH;
global.PDP10 = PDP10;
module.exports = PDP10;
}