DEC's "TRAP TEST" finally passes (and I learned a lot about PDP-11 opcode idiosyncrasies in the process)

This commit is contained in:
Jeff 2016-11-12 12:54:13 -08:00 committed by Jeff Parsons
commit 2c1191ce6e
14 changed files with 616 additions and 518 deletions

View file

@ -243,19 +243,7 @@ DevicePDP11.prototype.readMMR1 = function(addr)
*/
DevicePDP11.prototype.readMMR2 = function(addr)
{
return this.cpu.regMMR2;
};
/**
* writeMMR2(data, addr)
*
* @this {DevicePDP11}
* @param {number} data
* @param {number} addr (eg, PDP11.UNIBUS.MMR2 or 177576)
*/
DevicePDP11.prototype.writeMMR2 = function(data, addr)
{
this.cpu.regMMR2 = data;
return this.cpu.getMMR2();
};
/**