A82: Ipoint and Iline - take notes everbody!


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

A82: Ipoint and Iline - take notes everbody!




82 Equivalent of the 83's ILINE and IPOINT
(exactly as shown!)

Iline: (b=x1 c=y1 d=x2 e=y2 h=line type (0=erase,1=draw,2=invert)
 ROM_CALL($2E46) <--rets automatically 
 .dw $4025
 .db $04

To use: load what coordinates you want in b,c,d,e and type in h then
call Iline

Ipoint: (b=x1 c=y1 d=type)
 ld h,d
 ld d,b
 ld e,c
 call Iline
 ret

To use: load coordinates in b,c type in d and then call Ipoint.

~Ilya (got questions just ask)


References: