Mask bit 7 on all SerialPort bytes sent to PDPjs internal display buffers

This commit is contained in:
Jeff 2016-11-13 18:31:06 -08:00 committed by Jeff Parsons
commit d0911c49e2
4 changed files with 11 additions and 3 deletions

View file

@ -543,6 +543,11 @@ SerialPortPDP11.prototype.transmitByte = function(b)
}
}
/*
* TODO: Why do DEC diagnostics like to output bytes with bit 7 set?
*/
b &= 0x7F;
if (this.controlIOBuffer) {
if (b == 0x0D) {
this.iLogicalCol = 0;