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
|