Added a tgi_arc function. Removed the old ellipse code and create a new

ellipse module that calls tgi_arc.


git-svn-id: svn://svn.cc65.org/cc65/trunk@4446 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
uz
2009-11-05 19:52:18 +00:00
parent 78070d8bfb
commit de6050f21d
5 changed files with 125 additions and 52 deletions

28
libsrc/tgi/tgi_ellipse.s Normal file
View File

@@ -0,0 +1,28 @@
;
; Ullrich von Bassewitz, 2009-11-05
;
; void __fastcall__ tgi_ellipse (int x, int y, unsigned char rx, unsigned char ry);
; /* Draw a full ellipse with center at x/y and radii rx/ry using the current
; * drawing color.
; */
;
.include "tgi-kernel.inc"
.import pusha, push0
;----------------------------------------------------------------------------
;
.code
.proc _tgi_ellipse
jsr pusha ; Push ry
jsr push0 ; Start angle is 0
lda #<360
ldx #>360 ; End angle is 360
jmp _tgi_arc
.endproc