]> git.sur5r.net Git - cc65/blob - libsrc/tgi/tgi_ellipse.s
Added SER_ prefix. Whitespace cleanup
[cc65] / libsrc / tgi / tgi_ellipse.s
1 ;
2 ; Ullrich von Bassewitz, 2009-11-05
3 ;
4 ; void __fastcall__ tgi_ellipse (int x, int y, unsigned char rx, unsigned char ry);
5 ; /* Draw a full ellipse with center at x/y and radii rx/ry using the current
6 ; ** drawing color.
7 ; */
8 ;
9
10
11         .include        "tgi-kernel.inc"
12
13         .import         pusha, push0
14
15
16 ;----------------------------------------------------------------------------
17 ;
18
19 .code
20 .proc   _tgi_ellipse
21
22         jsr     pusha                   ; Push ry
23         jsr     push0                   ; Start angle is 0
24         lda     #<360
25         ldx     #>360                   ; End angle is 360
26         jmp     _tgi_arc
27
28 .endproc