Implemented a fallback fix for UNIBUS addresses where a byte write is expected to modify the entire word

This commit is contained in:
Jeff Parsons 2016-10-11 16:08:32 -07:00 • committed by Jeff Parsons
commit 8315774b1d
2 changed files with 9 additions and 3 deletions

View file

@ -918,6 +918,7 @@ DevicePDP11.prototype.writeMB = function(data, addr)
*/
DevicePDP11.prototype.readPIR = function(addr)
{
if (!addr) return 0; // the caller is preparing to write the low or high byte; these are the bits to return for the other byte
return this.cpu.getPIR();
};
@ -942,6 +943,7 @@ DevicePDP11.prototype.writePIR = function(data, addr)
*/
DevicePDP11.prototype.readSL = function(addr)
{
if (!addr) return 0; // the caller is preparing to write the low or high byte; these are the bits to return for the other byte
return this.cpu.getSL();
};