]> git.sur5r.net Git - cc65/blob - libsrc/nes/waitvsync.s
Fixed bugs; and, improved the efficiency of some pce library functions.
[cc65] / libsrc / nes / waitvsync.s
1 ;
2 ; Written by Groepaz <groepaz@gmx.net>
3 ; Cleanup by Ullrich von Bassewitz <uz@cc65.org>
4 ;
5 ; void waitvsync(void);
6 ;
7
8         .export _waitvsync
9
10         .include "nes.inc"
11
12 .proc   _waitvsync
13
14 wait:   lda     PPU_STATUS
15         bpl     wait
16         rts
17
18 .endproc