Working on the TGI library
git-svn-id: svn://svn.cc65.org/cc65/trunk@1323 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
30
libsrc/tgi/tgi_lineto.s
Normal file
30
libsrc/tgi/tgi_lineto.s
Normal file
@@ -0,0 +1,30 @@
|
||||
;
|
||||
; Ullrich von Bassewitz, 22.06.2002
|
||||
;
|
||||
; void __fastcall__ tgi_lineto (int x2, int y2);
|
||||
; /* Draw a line in the current drawing color from the graphics cursor to the
|
||||
; * new end point.
|
||||
; */
|
||||
|
||||
.include "tgi-kernel.inc"
|
||||
|
||||
.import popax
|
||||
.importzp ptr1, ptr2, ptr3, ptr4
|
||||
.export _tgi_lineto
|
||||
|
||||
_tgi_lineto:
|
||||
ldy _tgi_curx ; X1
|
||||
sty ptr1
|
||||
ldy _tgi_curx+1
|
||||
sty ptr1+1
|
||||
|
||||
ldy _tgi_cury ; Y1
|
||||
sty ptr2
|
||||
ldy _tgi_cury+1
|
||||
sty ptr2+1
|
||||
|
||||
jsr tgi_linepop
|
||||
|
||||
jmp tgi_line ; Call the driver
|
||||
|
||||
|
||||
Reference in New Issue
Block a user