A86: Re: Re: Re: _ILine
[Prev][Next][Index][Thread]
A86: Re: Re: Re: _ILine
i have 1.2, works fine... maybe you forgot to clr the grbuf.. you have3 to
do that first.. i used iline in Poke ...
-Ahmed
-----Original Message-----
From: Trey Jazz <joemama@minot.com>
To: assembly-86@lists.ticalc.org <assembly-86@lists.ticalc.org>
Date: Sunday, April 26, 1998 2:31 PM
Subject: A86: Re: Re: _ILine
>
>what rom version are you using for the emu? have u tried it on ur calc? i
>got 1.2 and most every line screws up....most of the time it displays lines
>that are on the graph screen instead of a line (i have no idea why) so i
>changed it so it goes to the graph screen and clears it then draws random
>lines everywhere, but now it wont even draw one line right so i dunno :(
>
>>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/
>>
>>
>