1
0
mirror of https://github.com/cc65/cc65.git synced 2024-07-16 17:29:43 +00:00
cc65/libsrc/pce/waitvsync.s

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