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

19 lines
332 B
ArmAsm
Raw Normal View History

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