]> git.sur5r.net Git - cc65/blob - libsrc/gamate/waitvsync.s
Merge pull request #849 from polluks/patch-4
[cc65] / libsrc / gamate / waitvsync.s
1 ;
2 ; Written by Groepaz <groepaz@gmx.net>
3 ;
4 ; void waitvsync (void);
5 ;
6
7         .include        "gamate.inc"
8         .include        "extzp.inc"
9
10         .forceimport    ticktock
11         .export         _waitvsync
12
13 ; FIXME: is this actually correct?
14
15 .proc   _waitvsync
16
17         lda     tickcount
18 @lp:    cmp     tickcount
19         beq     @lp
20         rts
21
22 .endproc