]> git.sur5r.net Git - cc65/blob - libsrc/tgi/tgi_getpixel.s
improved handling of cursor display and position
[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         .export         _tgi_getpixel
12
13 _tgi_getpixel:
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