From: mrdudz Date: Mon, 17 Jul 2017 23:06:20 +0000 (+0200) Subject: wait for line 0 instead of last line X-Git-Tag: V2.17~116^2 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=refs%2Fpull%2F453%2Fhead;p=cc65 wait for line 0 instead of last line --- diff --git a/libsrc/vic20/waitvsync.s b/libsrc/vic20/waitvsync.s index b5861ada3..1c76f2497 100644 --- a/libsrc/vic20/waitvsync.s +++ b/libsrc/vic20/waitvsync.s @@ -8,20 +8,9 @@ .include "vic20.inc" -; FIXME -; this flag doesnt work on vic20!!! -; it will have to be filled by a get_tv() constructor or so -PALFLAG = $2A6 ; $01 = PAL, $00 = NTSC - _waitvsync: - lda PALFLAG - beq @ntsc - ldx #(312-8)/2 - .byte $2c -@ntsc: - ldx #(262-8)/2 @l2: - cpx VIC_HLINE - bcs @l2 + lda VIC_HLINE + bne @l2 rts