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-08-29 15:58:57 +02:00
|
|
|
.include "pce.inc"
|
2015-09-19 15:37:39 +02:00
|
|
|
.include "extzp.inc"
|
2015-07-15 19:46:26 +02:00
|
|
|
|
2015-09-19 15:55:43 +02:00
|
|
|
.forceimport ticktock
|
2017-07-17 23:15:05 +02:00
|
|
|
.export _waitvsync
|
2015-07-15 19:46:26 +02:00
|
|
|
|
2017-07-17 23:15:05 +02:00
|
|
|
.proc _waitvsync
|
2015-07-15 19:46:26 +02:00
|
|
|
|
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
|