1
0
mirror of https://github.com/cc65/cc65.git synced 2024-07-21 06:28:57 +00:00
cc65/libsrc/vic20/waitvsync.s

22 lines
420 B
ArmAsm
Raw Normal View History

2017-07-17 21:15:05 +00:00
.export _waitvsync
2016-02-28 21:35:46 +00:00
.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
2016-02-28 21:35:46 +00:00
2017-07-17 21:15:05 +00:00
_waitvsync:
2016-02-28 21:35:46 +00:00
lda PALFLAG
beq @ntsc
ldx #(312-8)/2
.byte $2c
@ntsc:
ldx #(262-8)/2
@l2:
cpx VIC_HLINE
bcs @l2
rts