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