2 ; Oliver Schmidt <ol.sc@web.de>
4 ; Generic LINE implementation based on SETPIXEL for TGI driver inclusion
5 ; Code previously present in a2.lo.tgi, c128-vdc.tgi and c128-vdc2.tgi
8 ; ------------------------------------------------------------------------
10 ; LINE: Draw a line from X1/Y1 to X2/Y2, where X1/Y1 = ptr1/ptr2 and
11 ; X2/Y2 = ptr3/ptr4 using the current drawing color.
12 ; Must set an error code: NO
16 ; Used for passing parameters to the driver.
23 ; These ones must be on zpage.
34 ; ------------------------------------------------------------------------
45 ; ------------------------------------------------------------------------
151 ; for (count = nx; count > 0; --count) {
156 for: lda COUNT ; count > 0
207 ; if (abs (pb) < abs (ub)) {
225 ; else { x1 = x1 + ax
266 ; Copies of some runtime routines
286 ; Compare A/Y to zp,X
287 sta TEMP1 ; TEMP1/TEMP2 - arg2
295 tya ; X/A - arg1 (a = high)