mirror of
https://github.com/TomHarte/CLK.git
synced 2025-08-05 08:26:28 +00:00
Expose line interrupt status only when enabled.
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user