Re: A86: a line drawing routine


[Prev][Next][Index][Thread]

Re: A86: a line drawing routine




In a message dated 5/3/00 7:28:45 PM Eastern Daylight Time, rengets@erols.com 
writes:

<< is there any (documented) line drawing routine?  I tried to look at the 
one that came with the Torus demo, but it isn't commented too much so I got 
lost pretty easily
 
 I've been wanting to make my own line routine, but I'm not too good at 
assembler (at least not yet anyways).  Would a novice like me actually 
understand how a line routine would work? :P
  >>
You can just use the _ILine call. from the asm studio help file, the 
arguments are:
Call _ILine

B = X coordinate of first point
C = Y coordinate of first point
D = X coordinate of second point
E = Y coordinate of second point
H = Type of line to draw:
    0 = Set pixels to light
    1 = Set pixels to dark
    2 = Reverse pixels (XOR pixels)

for some code:

 ld b,X1
 ld c, Y1
 ld d, X2
 ld e,Y2
 ld h, linetype
 call _ILine

Jeff Barrett
Hybridsoft
Co-founder and Director of TI Programming
Hybridsoft.cjb.net
Ronibarrett@aol.com
AIM:RoniBarrett
ICQ:67472242



Follow-Ups: