1
0
mirror of https://github.com/cc65/cc65.git synced 2024-11-02 18:06:48 +00:00
cc65/libsrc/pce/waitvblank.s

19 lines
287 B
ArmAsm
Raw Normal View History

2015-07-15 17:46:26 +00:00
;
; void waitvblank (void);
;
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
2015-07-15 17:46:26 +00:00
.export _waitvblank
.proc _waitvblank
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