Code cleanup
This commit is contained in:
parent
40b6b584f6
commit
3a9cd5cf04
24 changed files with 17 additions and 33 deletions
|
|
@ -422,7 +422,6 @@ class ComputerPDP11 extends Component {
|
|||
}
|
||||
}
|
||||
if (DEBUG && this.messageEnabled()) this.printMessage("ComputerPDP11.wait(ready)");
|
||||
//noinspection JSUnresolvedFunction
|
||||
fn.call(this, parms);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1352,7 +1352,6 @@ PDP11.opMFPI = function(opCode)
|
|||
*/
|
||||
PDP11.opMFPS = function(opCode)
|
||||
{
|
||||
//noinspection JSUnresolvedFunction
|
||||
PDP11.opUndefined.call(this, opCode);
|
||||
};
|
||||
|
||||
|
|
@ -1375,7 +1374,6 @@ PDP11.opMFPS = function(opCode)
|
|||
*/
|
||||
PDP11.opMFPT = function(opCode)
|
||||
{
|
||||
//noinspection JSUnresolvedFunction
|
||||
PDP11.opUndefined.call(this, opCode);
|
||||
};
|
||||
|
||||
|
|
@ -1471,7 +1469,6 @@ PDP11.opMTPI = function(opCode)
|
|||
*/
|
||||
PDP11.opMTPS = function(opCode)
|
||||
{
|
||||
//noinspection JSUnresolvedFunction
|
||||
PDP11.opUndefined.call(this, opCode);
|
||||
};
|
||||
|
||||
|
|
@ -1668,7 +1665,6 @@ PDP11.opRTI = function(opCode)
|
|||
PDP11.opRTS = function(opCode)
|
||||
{
|
||||
if (opCode & 0x08) {
|
||||
//noinspection JSUnresolvedFunction
|
||||
PDP11.opUndefined.call(this, opCode);
|
||||
return;
|
||||
}
|
||||
|
|
@ -1813,7 +1809,6 @@ PDP11.opSOB = function(opCode)
|
|||
PDP11.opSPL = function(opCode)
|
||||
{
|
||||
if (!(opCode & 0x08) || this.model < PDP11.MODEL_1145) {
|
||||
//noinspection JSUnresolvedFunction
|
||||
PDP11.opUndefined.call(this, opCode);
|
||||
return;
|
||||
}
|
||||
|
|
@ -2415,7 +2410,6 @@ PDP11.op8Xnn_1140 = function(opCode)
|
|||
PDP11.op8DXn_1140 = function(opCode)
|
||||
{
|
||||
if (this.model < PDP11.MODEL_1145) {
|
||||
//noinspection JSUnresolvedFunction
|
||||
PDP11.opUndefined.call(this, opCode);
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2901,11 +2901,9 @@ class CPUStatePDP11 extends CPUPDP11 {
|
|||
data = (data < 0? (this.regsGen[-data-1] & 0xff): data);
|
||||
this.regsGen[reg] = (this.regsGen[reg] & ~writeFlags) | (((data << 24) >> 24) & writeFlags);
|
||||
}
|
||||
//noinspection JSUnresolvedFunction
|
||||
fnFlags.call(this, data << 8);
|
||||
} else {
|
||||
var addr = this.getAddr(mode, reg, PDP11.ACCESS.WRITE_BYTE);
|
||||
//noinspection JSUnresolvedFunction
|
||||
fnFlags.call(this, (data = data < 0? (this.regsGen[-data-1] & 0xff) : data) << 8);
|
||||
this.setByte(addr, data);
|
||||
if (addr & 1) this.nStepCycles--;
|
||||
|
|
@ -2931,11 +2929,9 @@ class CPUStatePDP11 extends CPUPDP11 {
|
|||
|
||||
if (!mode) {
|
||||
this.regsGen[reg] = (data = data < 0? this.regsGen[-data-1] : data);
|
||||
//noinspection JSUnresolvedFunction
|
||||
fnFlags.call(this, data);
|
||||
} else {
|
||||
var addr = this.getAddr(mode, reg, PDP11.ACCESS.WRITE_WORD);
|
||||
//noinspection JSUnresolvedFunction
|
||||
fnFlags.call(this, (data = data < 0? this.regsGen[-data-1] : data));
|
||||
this.setWord(addr, data);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3008,7 +3008,6 @@ class DebuggerPDP11 extends Debugger {
|
|||
this.println("warning: " + Str.toHex(vNew) + " exceeds " + size + "-byte value");
|
||||
}
|
||||
this.println("changing " + this.toStrAddr(dbgAddr) + (this.messageEnabled(MessagesPDP11.BUS)? "" : (" from " + this.toStrBase(fnGet.call(this, dbgAddr), size << 3))) + " to " + this.toStrBase(vNew, size << 3));
|
||||
//noinspection JSUnresolvedFunction
|
||||
fnSet.call(this, dbgAddr, vNew, size);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -371,7 +371,6 @@ class DiskPDP11 extends Component {
|
|||
}
|
||||
|
||||
if (this.fnNotify) {
|
||||
//noinspection JSUnresolvedFunction
|
||||
this.fnNotify.call(this.controller, this.drive, disk, this.sDiskName, this.sDiskPath);
|
||||
this.fnNotify = null;
|
||||
}
|
||||
|
|
@ -591,7 +590,6 @@ class DiskPDP11 extends Component {
|
|||
}
|
||||
|
||||
if (this.fnNotify) {
|
||||
//noinspection JSUnresolvedFunction
|
||||
this.fnNotify.call(this.controllerNotify, this.drive, disk, this.sDiskName, this.sDiskPath);
|
||||
this.fnNotify = null;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue