Re: A83: Pixel Test


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

Re: A83: Pixel Test




Better:
Have X and Y next to each other in memory, y first

ld bc,(ycoord)

(where ycoord is a memory location)

or if you're using registers:
ld b,<whatever>
ld c,<whatever>

>From: ComAsYuAre@aol.com
>Reply-To: assembly-83@lists.ticalc.org
>To: assembly-83@lists.ticalc.org
>Subject: Re: A83: Pixel Test
>Date: Sun, 7 Jan 2001 21:15:39 EST
>
>Just load the values into bc as if they were constants:
>
>  ld a,(x)
>  ld b,a    ;now b=x value
>  ld a,(y)
>  ld c,a    ;now c=y value
>
>
>In a message dated 1/7/2001 8:48:40 PM Eastern Standard Time,
>pyroboy_04@yahoo.com writes:
>
>
> > When I use the _ILine call, is there anyway load the line from variables
> > instead of from just numbers?
> > Example:
> > Can i do this:
> > ld bc,(x)*256+(y)
> > Instead of this:
> > ld bc,5*256+35
> > I want to be able to load the coords from registers or variables.  Can I 
>do
> > that?  Or is there a different way not using ILine?
> >
>
>
>
>
>----
>Jonah Cohen
><ComAsYuAre@aol.com>
>http://jonah.ticalc.org

_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com