]> git.sur5r.net Git - cc65/blob - libsrc/tgi/tgi_getmaxy.s
Hold the maximum X and Y coordinate in variables instead of calculating them
[cc65] / libsrc / tgi / tgi_getmaxy.s
1 ;
2 ; Ullrich von Bassewitz, 21.06.2002
3 ;
4 ; unsigned __fastcall__ tgi_getmaxy (void);
5 ; /* Return the maximum y coordinate. The resolution in y direction is
6 ;  * getmaxy() + 1
7 ;  */
8
9         .include        "tgi-kernel.inc"
10
11 .proc   _tgi_getmaxy
12
13         lda     _tgi_ymax
14         ldx     _tgi_ymax+1
15         rts
16
17 .endproc
18