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:
parent
d533ae69aa
commit
0607d65b70
8 changed files with 163 additions and 140 deletions
|
|
@ -662,12 +662,12 @@ SerialPortPDP11.prototype.readXCSR = function(addr)
|
|||
SerialPortPDP11.prototype.writeXCSR = function(data, addr)
|
||||
{
|
||||
/*
|
||||
* If the device is READY, and TIE is being set, then request an interrupt.
|
||||
* If the device is READY, and TIE is being set, then request a hardware interrupt.
|
||||
*
|
||||
* Conversely, if TIE is being cleared, remove the request; this satisfies a test in MAINDEC TEST 15,
|
||||
* which appears to clear, set, and clear the Transmitter Interrupt Enable (TIE) bit in rapid succession,
|
||||
* with the expectation that NO interrupt will be generated. However, this fix also required a
|
||||
* complementary change in setTrigger(), to signal an interrupt using INTQ_DELAY rather than INTQ.
|
||||
* complementary change in setTrigger(), to request hardware interrupts with INTQ_DELAY rather than INTQ.
|
||||
*/
|
||||
if (this.xcsr & PDP11.DL11.XCSR.READY) {
|
||||
if (data & PDP11.DL11.XCSR.TIE) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue