]> git.sur5r.net Git - cc65/blob - libsrc/tgi/tgi_setdrawpage.s
Restore src/cc65/locals.c:278 to its orignal state
[cc65] / libsrc / tgi / tgi_setdrawpage.s
1 ;
2 ; Ullrich von Bassewitz, 22.06.2002
3 ;
4 ; void __fastcall__ tgi_setdrawpage (unsigned char page);
5 ; /* Set the drawable page */
6
7
8         .include        "tgi-kernel.inc"
9
10 .proc   _tgi_setdrawpage
11
12         cmp     _tgi_pagecount  ; Compare to available pages
13         bcs     @L1
14         jmp     tgi_setdrawpage ; Call the driver
15 @L1:    jmp     tgi_inv_arg     ; Invalid argument
16
17 .endproc
18