1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-11-23 03:32:32 +00:00

Attempts a fuller setting of GPIP inputs.

This commit is contained in:
Thomas Harte 2019-10-27 22:39:21 -04:00
parent 1aaa6331a0
commit d44734d105

View File

@ -654,8 +654,14 @@ class ConcreteMachine:
GPIP 0: centronics busy GPIP 0: centronics busy
*/ */
mfp_->set_port_input( mfp_->set_port_input(
0x80 | 0x00 | // b7: Monochrome monitor detect (1 = is monochrome).
((keyboard_acia_->get_interrupt_line() || midi_acia_->get_interrupt_line()) ? 0x0 : 0x10) // Interrupts are active low. 0x40 | // b6: RS-232 ring indicator.
0x20 | // b5: FD/HS interrupt (0 = interrupt requested).
((keyboard_acia_->get_interrupt_line() || midi_acia_->get_interrupt_line()) ? 0x0 : 0x10) | // b4: Keyboard/MIDI interrupt (0 = interrupt requested).
0x08 | // b3: Unused
0x04 | // b2: RS-232 clear to send.
0x02 | // b1 : RS-232 carrier detect.
0x00 // b0: Centronics busy (1 = busy).
); );
} }