mirror of
https://github.com/cc65/cc65.git
synced 2025-01-18 11:29:45 +00:00
bf944755dd
git-svn-id: svn://svn.cc65.org/cc65/trunk@1323 b7a2c559-68d2-44c3-8de9-860c34a00d81
31 lines
664 B
ArmAsm
31 lines
664 B
ArmAsm
;
|
|
; 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
|
|
|
|
|