]> git.sur5r.net Git - cc65/blob - libsrc/tgi/tgi_getpixel.s
6af67a816c50dd05d39515a0eb2e39f0f0fbd428
[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         popax
11         .importzp       ptr1, ptr2
12         .export         _tgi_getpixel
13
14 _tgi_getpixel:
15         sta     ptr2            ; Get the coordinates
16         stx     ptr2+1
17         jsr     popax
18         sta     ptr1
19         stx     ptr1+1
20
21         jmp     tgi_getpixel    ; Call the driver
22
23
24