Mask bit 7 on all SerialPort bytes sent to PDPjs internal display buffers
This commit is contained in:
parent
9bc4f81eda
commit
d0911c49e2
4 changed files with 11 additions and 3 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -565,7 +565,7 @@ str.aASCIICodes = {
|
|||
// 0x0A: "LF", // (CTRL_J) Line Feed (New Line)
|
||||
0x0B: "VT", // (CTRL_K) Vertical Tab
|
||||
0x0C: "FF", // (CTRL_L) Form Feed (New Page)
|
||||
0x0D: "CR", // (CTRL_M) Carriage Return
|
||||
// 0x0D: "CR", // (CTRL_M) Carriage Return
|
||||
0x0E: "SO", // (CTRL_N) Shift Out
|
||||
0x0F: "SI", // (CTRL_O) Shift In
|
||||
0x10: "DLE", // (CTRL_P) Data Link Escape
|
||||
|
|
|
|||
Loading…
Reference in a new issue