]> git.sur5r.net Git - cc65/blob - libsrc/tgi/tgi_getpixel.s
Restore src/cc65/locals.c:278 to its orignal state
[cc65] / libsrc / tgi / tgi_getpixel.s
1 ;
2 ; Ullrich von Bassewitz, 21.06.2002
3 ;
4 ; unsigned char __fastcall__ tgi_getpixel (int x, int y);
5 ; /* Get the color value of a pixel */
6
7
8         .include        "tgi-kernel.inc"
9
10         .import         return0
11
12 .proc   _tgi_getpixel
13
14         jsr     tgi_getset      ; Pop args, check range
15         bcs     @L9
16         jmp     tgi_getpixel    ; Call the driver
17 @L9:    jmp     return0         ; Assume bg color
18
19 .endproc
20