1
0
mirror of https://github.com/cc65/cc65.git synced 2024-11-19 06:31:31 +00:00
cc65/libsrc/c128/waitvblank.s

26 lines
380 B
ArmAsm
Raw Normal View History

2016-02-28 21:35:46 +00:00
.export _waitvblank
.include "c128.inc"
2016-02-28 21:35:46 +00:00
_waitvblank:
bit MODE
bmi @c80
2016-02-28 21:35:46 +00:00
@l1:
bit VIC_CTRL1
bpl @l1
2016-02-28 21:35:46 +00:00
@l2:
bit VIC_CTRL1
bmi @l2
2016-02-28 21:35:46 +00:00
rts
@c80:
;FIXME: do we have to switch banks?
@l3:
lda VDC_INDEX
and #$20
beq @l3
rts