]> git.sur5r.net Git - cc65/commitdiff
wait for line 0 instead of last line 453/head
authormrdudz <mrdudz@users.noreply.github.com>
Mon, 17 Jul 2017 23:06:20 +0000 (01:06 +0200)
committermrdudz <mrdudz@users.noreply.github.com>
Mon, 17 Jul 2017 23:06:20 +0000 (01:06 +0200)
libsrc/vic20/waitvsync.s

index b5861ada3e33e4076b5a58c1d41a710f5e598fe5..1c76f24978f069dfe4ffbee5636859f518ee3728 100644 (file)
@@ -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