mirror of
https://github.com/cc65/cc65.git
synced 2025-01-26 02:30:17 +00:00
18 lines
327 B
ArmAsm
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
|