]> git.sur5r.net Git - cc65/blob - libsrc/tgi/tgi_lineto.s
Use "override" when appending to CFLAGS, so this works even when CFLAGS is
[cc65] / libsrc / tgi / tgi_lineto.s
1 ;
2 ; Ullrich von Bassewitz, 22.06.2002
3 ;
4 ; void __fastcall__ tgi_lineto (int x2, int y2);
5 ; /* Draw a line in the current drawing color from the graphics cursor to the
6 ;  * new end point.
7 ;  */
8
9         .include        "tgi-kernel.inc"
10
11         .import         popax
12
13 .proc   _tgi_lineto
14
15         jsr     tgi_curtoxy     ; Copy curx/cury into ptr1/ptr2
16         jsr     tgi_linepop     ; Pop x2/y2 into ptr3/ptr4 and curx/cury
17         jmp     tgi_line        ; Call the driver
18
19 .endproc
20