1
0
mirror of https://github.com/cc65/cc65.git synced 2024-11-12 07:07:19 +00:00
cc65/libsrc/gamate/waitvsync.s
2017-07-18 01:04:53 +02:00

23 lines
364 B
ArmAsm

;
; Written by Groepaz <groepaz@gmx.net>
;
; void waitvsync (void);
;
.include "gamate.inc"
.include "extzp.inc"
.forceimport ticktock
.export _waitvsync
; FIXME: is this actually correct?
.proc _waitvsync
lda tickcount
@lp: cmp tickcount
beq @lp
rts
.endproc