2003-05-02 13:40:01 +00:00
|
|
|
;
|
2017-07-18 01:04:53 +02:00
|
|
|
; Written by Groepaz <groepaz@gmx.net>
|
2003-05-02 13:40:01 +00:00
|
|
|
; Cleanup by Ullrich von Bassewitz <uz@cc65.org>
|
|
|
|
;
|
2017-07-17 23:15:05 +02:00
|
|
|
; void waitvsync(void);
|
2003-05-02 13:40:01 +00:00
|
|
|
;
|
|
|
|
|
2017-07-17 23:15:05 +02:00
|
|
|
.export _waitvsync
|
2003-05-02 13:40:01 +00:00
|
|
|
|
2013-05-09 13:56:54 +02:00
|
|
|
.include "nes.inc"
|
2003-05-02 13:40:01 +00:00
|
|
|
|
2017-07-17 23:15:05 +02:00
|
|
|
.proc _waitvsync
|
2003-05-02 13:40:01 +00:00
|
|
|
|
2020-04-06 16:20:52 +02:00
|
|
|
wait: bit PPU_STATUS
|
2003-05-02 13:40:01 +00:00
|
|
|
bpl wait
|
|
|
|
rts
|
|
|
|
|
|
|
|
.endproc
|