mirror of
https://github.com/TomHarte/CLK.git
synced 2025-02-16 18:30:32 +00:00
Expose line interrupt status only when enabled.
This commit is contained in:
parent
9c079a6c50
commit
3797968870
@ -1110,7 +1110,7 @@ uint8_t Base<personality>::read_register() {
|
||||
// Reset upon read.
|
||||
const uint8_t result =
|
||||
(personality == Personality::V9938 ? 0x0 : 0x4) |
|
||||
(line_interrupt_pending_ ? 0x01 : 0x00);
|
||||
((line_interrupt_pending_ && enable_line_interrupts_) ? 0x01 : 0x00);
|
||||
|
||||
line_interrupt_pending_ = false;
|
||||
return result;
|
||||
|
Loading…
x
Reference in New Issue
Block a user