From 6845008fd43c4ee65340ab3ce3f103ffeb24d37e Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Tue, 7 Mar 2023 22:12:06 -0500 Subject: [PATCH] Place end-of-frame interrupt appropriately. --- Components/9918/Implementation/9918.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Components/9918/Implementation/9918.cpp b/Components/9918/Implementation/9918.cpp index 9c6bc79f4..0cfe5b125 100644 --- a/Components/9918/Implementation/9918.cpp +++ b/Components/9918/Implementation/9918.cpp @@ -795,6 +795,9 @@ void Base::commit_register(int reg, uint8_t value) { case 9: mode_timing_.pixel_lines = (value & 0x80) ? 212 : 192; + mode_timing_.end_of_frame_interrupt_position.row = mode_timing_.pixel_lines+1; + // TODO: on the Yamaha, at least, tie this interrupt overtly to vertical state. + LOG("TODO: Yamaha line count, interlace, etc; " << PADHEX(2) << +value); // b7: 1 = 212 lines of pixels; 0 = 192 // b5 & b4: select simultaneous mode (seems to relate to line length and in-phase colour?)