Fixed RTI on older PDP-11s (ie, 11/20); the old RTI behaves like the new RTT, which did not exist on older machines

This commit is contained in:
Jeff 2016-11-13 21:17:46 -08:00 • committed by Jeff Parsons
commit 0607d65b70
8 changed files with 163 additions and 140 deletions

View file

@ -176,23 +176,23 @@ PanelPDP11.LED = {
};
/**
* getSW()
* getSR()
*
* @this {PanelPDP11}
* @return {number}
* @return {number} (current SWITCH register)
*/
PanelPDP11.prototype.getSW = function()
PanelPDP11.prototype.getSR = function()
{
return this.regSwitches;
};
/**
* setSW(value)
* setSR(value)
*
* @this {PanelPDP11}
* @param {number} value
* @param {number} value (new SWITCH register)
*/
PanelPDP11.prototype.setSW = function(value)
PanelPDP11.prototype.setSR = function(value)
{
this.setSwitches(value);
};