Temporary fix for first short sync timer after image firing in advance

This commit is contained in:
Daniele Verducci su MatissePenguin 2021-01-17 17:51:34 +01:00
parent b3269125ac
commit 901fe50fee

View File

@ -115,7 +115,7 @@ on_tim1_ovf:
; called by timer 1 two times per line (every 32 uS) during hsync, unless drawing picture. ; called by timer 1 two times per line (every 32 uS) during hsync, unless drawing picture.
inc STATUS inc STATUS
; if STATUS >= 33 then STATUS=0 ; if STATUS >= 33 then STATUS=0
cpi STATUS, 33 cpi STATUS, 35 ; TODO: Added a seventh sync pulse at end of screen because at the first short sync after the image, the timer doesn't tick at the right time
brlo switch_status brlo switch_status
clr STATUS clr STATUS
; check status and decide what to do ; check status and decide what to do