1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-07-04 18:29:40 +00:00

Only on the Sega are line interrupts disabled by a read of S#0.

This commit is contained in:
Thomas Harte 2023-02-20 23:43:23 -05:00
parent 2e45422b03
commit a28b5bdeea

View File

@ -1106,7 +1106,9 @@ uint8_t Base<personality>::read_register() {
// Gets the status register.
const uint8_t result = status_;
status_ &= ~(StatusInterrupt | StatusSpriteOverflow | StatusSpriteCollision);
line_interrupt_pending_ = false;
if constexpr (is_sega_vdp(personality)) {
line_interrupt_pending_ = false;
}
return result;
}