Quote from: daydreamer on Today at 04:43:42 AMExcept ,one of my friends bought ABC 802 for his student roomHmm, cute li'l computers.
plotLine(x0, y0, x1, y1)
if abs(y1 - y0) < abs(x1 - x0)
if x0 > x1
plotLineLow(x1, y1, x0, y0)
else
plotLineLow(x0, y0, x1, y1)
end if
else
if y0 > y1
plotLineHigh(x1, y1, x0, y0)
else
plotLineHigh(x0, y0, x1, y1)
end if
end if
; Calculate slope (y1-y0/x1-x0):
MOV EDX, $slopeFactor
IMUL EDX
IDIV xDist
MOV deltaY, EAX ;This is amount (fractional) to add to Y each time.
Very un-Bresenham (which only uses adds and shifts).