Skip to content

Commit

Permalink
kc85/3: fix blinking
Browse files Browse the repository at this point in the history
  • Loading branch information
floooh committed Aug 1, 2024
1 parent 5373b40 commit 11af2d1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/systems/kc85.zig
Original file line number Diff line number Diff line change
Expand Up @@ -603,10 +603,14 @@ pub fn Type(comptime model: Model) type {
// remainder: hi
if ((self.video.h_tick & 0x20) != 0) {
bus |= Z80CTC.CLKTRG0 | Z80CTC.CLKTRG1;
} else {
bus &= ~(Z80CTC.CLKTRG0 | Z80CTC.CLKTRG1);
}
// vertical blanking interval (/BI) active for the last 56 scanlines
if ((self.video.v_count & 0x100) != 0) {
bus |= Z80CTC.CLKTRG2 | Z80CTC.CLKTRG3;
} else {
bus &= ~(Z80CTC.CLKTRG2 | Z80CTC.CLKTRG3);
}
if (self.video.h_tick == SCANLINE_TICKS) {
self.video.h_tick = 0;
Expand Down

0 comments on commit 11af2d1

Please sign in to comment.