1
0
mirror of https://github.com/cc65/cc65.git synced 2024-06-20 05:29:39 +00:00
cc65/libsrc/vic20/waitvblank.s

22 lines
422 B
ArmAsm
Raw Normal View History

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