]> git.sur5r.net Git - cc65/blobdiff - libsrc/c128/waitvblank.s
fixed code a bit so it compiles again :)
[cc65] / libsrc / c128 / waitvblank.s
index a3904d858226ba477f2d6f29733f169fe955ef6b..54699286c831b3deef1411f5a1fb191a189c8784 100644 (file)
@@ -1,20 +1,13 @@
 
         .export         _waitvblank
 
-        .include        "c128/c128.inc"
+        .include        "c128.inc"
 
 _waitvblank:
-        lda     PALFLAG
-        beq     @ntsc
-        ldx     #(312-24)-256
-        .byte $2c
-@ntsc:
-        ldx     #(262-4)-256
 @l1:
         lda     VIC_CTRL1
-        and     #$80
-        beq     @l1
+        bpl     @l1
 @l2:
-        cpx     VIC_HLINE
-        bcs     @l2
+        lda     VIC_CTRL1
+        bmi     @l2
         rts