mirror of
https://github.com/cc65/cc65.git
synced 2024-06-15 02:29:32 +00:00
wait for line 0 instead of last line
This commit is contained in:
parent
8eee51913a
commit
b6d3d32e88
|
@ -8,20 +8,9 @@
|
||||||
|
|
||||||
.include "vic20.inc"
|
.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:
|
_waitvsync:
|
||||||
lda PALFLAG
|
|
||||||
beq @ntsc
|
|
||||||
ldx #(312-8)/2
|
|
||||||
.byte $2c
|
|
||||||
@ntsc:
|
|
||||||
ldx #(262-8)/2
|
|
||||||
@l2:
|
@l2:
|
||||||
cpx VIC_HLINE
|
lda VIC_HLINE
|
||||||
bcs @l2
|
bne @l2
|
||||||
rts
|
rts
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user