1
0
mirror of https://github.com/cc65/cc65.git synced 2024-12-26 08:32:00 +00:00
cc65/libsrc/gamate/waitvsync.s

23 lines
364 B
ArmAsm
Raw Normal View History

2015-11-29 00:14:59 +00:00
;
2017-07-17 23:04:53 +00:00
; Written by Groepaz <groepaz@gmx.net>
;
2017-07-17 21:15:05 +00:00
; void waitvsync (void);
2015-11-29 00:14:59 +00:00
;
.include "gamate.inc"
.include "extzp.inc"
.forceimport ticktock
2017-07-17 21:15:05 +00:00
.export _waitvsync
2015-11-29 00:14:59 +00:00
; FIXME: is this actually correct?
2017-07-17 21:15:05 +00:00
.proc _waitvsync
2015-11-29 00:14:59 +00:00
lda tickcount
@lp: cmp tickcount
beq @lp
rts
.endproc