1
0
mirror of https://github.com/cc65/cc65.git synced 2024-11-17 09:07:32 +00:00
cc65/libsrc/c64/waitvsync.s

19 lines
268 B
ArmAsm
Raw Normal View History

2017-07-17 23:04:53 +00:00
;
; Written by Groepaz <groepaz@gmx.net>
;
; void waitvsync (void);
;
2016-02-28 21:35:46 +00:00
2017-07-17 21:15:05 +00:00
.export _waitvsync
2016-02-28 21:35:46 +00:00
.include "c64.inc"
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
@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