1
0
mirror of https://github.com/cc65/cc65.git synced 2024-12-25 17:29:50 +00:00
cc65/libsrc/cx16/waitvsync.s

18 lines
327 B
ArmAsm

;
; 2019-09-26, Greg King
;
; void waitvsync (void);
;
; VERA's vertical sync. causes IRQs which increment the jiffy clock.
;
.export _waitvsync
.include "cx16.inc"
_waitvsync:
lda TIME + 2
: cmp TIME + 2
beq :- ; Wait for next jiffy
rts