1
0
mirror of https://github.com/cc65/cc65.git synced 2024-06-01 13:41:34 +00:00
cc65/libsrc/pce/waitvsync.s

19 lines
332 B
ArmAsm
Raw Normal View History

2015-07-15 17:46:26 +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-07-15 17:46:26 +00:00
;
2015-10-02 14:50:22 +00:00
.export _waitvsync
2015-07-15 17:46:26 +00:00
2015-11-17 14:14:15 +00:00
.forceimport ticktock ; make sure that tickcount changes
2015-07-15 17:46:26 +00:00
2015-10-02 14:50:22 +00:00
.include "extzp.inc"
2015-07-15 17:46:26 +00:00
2015-10-02 14:50:22 +00:00
.proc _waitvsync
2015-08-29 13:58:57 +00:00
lda tickcount
@lp: cmp tickcount
beq @lp
2015-07-15 17:46:26 +00:00
rts
.endproc