1
0
mirror of https://github.com/cc65/cc65.git synced 2025-01-11 11:30:13 +00:00
cc65/libsrc/gamate/waitvsync.s

23 lines
364 B
ArmAsm
Raw Normal View History

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