A86: Re: _ILine
[Prev][Next][Index][Thread]
A86: Re: _ILine
>what exactly is the problem with the _ILine call? can _anyone_ get it to
>work right and how? pat this is a major bug right?
I wrote this small program and tested it on the emulator; it works fine. The
only thing
is 1,1 is the bottom left and 127, 63 is the top right
_ILine Routine
Draws a line on the screen with the specified coordinates. No clipping is
done, so be sure the coordinates are within the screen limits.
Input 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)
Output None
Defined in ti86asm.inc:
_ILine .EQU 4E51h
;-------------------------------------
#include "ti86asm.inc"
.org _asm_exec_ram
'Set coordinates
ld b, 1
ld c, 1
ld d, 127
ld e, 63
ld h, 1 ;Set pixels dark
call _ILine
ret
.end
----------
Matt Johnson
matt2000@gte.net
ICQ: 8342478
http://www.dogtech.com/cybop/ti86/