TomHarte / CLK

A latency-hating emulator of: the Acorn Electron and Archimedes, Amstrad CPC, Apple II/II+/IIe and early Macintosh, Atari 2600 and ST, ColecoVision, Enterprise 64/128, Commodore Vic-20 and Amiga, MSX 1/2, Oric 1/Atmos, early PC compatibles, Sega Master System, Sinclair ZX80/81 and ZX Spectrum.
MIT License
931 stars 52 forks source link

Ensure Master System horizontal scroll is latched every line. #1316

Closed TomHarte closed 8 months ago

TomHarte commented 8 months ago

Old code was:

if(this is first row) { if(this is latch time) { latch vertical; } latch horizontal; }

This is corrected to:

if(this is latch time) { if(this is first row) { latch vertical; } latch horizontal; }

So:

Which I think is correct.

Resolves #1313