]> git.sur5r.net Git - cc65/blob - libsrc/tgi/tgi_setpixel.s
cab5618cd141940bc9c42ca88ab6dad658ac89e4
[cc65] / libsrc / tgi / tgi_setpixel.s
1 ;
2 ; Ullrich von Bassewitz, 21.06.2002
3 ;
4 ; void __fastcall__ tgi_setpixel (int x, int y);
5 ; /* Plot a point in the current drawing color */
6
7
8         .include        "tgi-kernel.inc"
9
10         .import         popax
11         .importzp       ptr1, ptr2
12         .export         _tgi_setpixel
13
14 _tgi_setpixel:
15         sta     ptr2            ; Get the coordinates
16         stx     ptr2+1
17         jsr     popax
18         sta     ptr1
19         stx     ptr1+1
20
21         jmp     tgi_setpixel    ; Call the driver
22