[A83] Re: CREATEPICT
[Prev][Next][Index][Thread]
[A83] Re: CREATEPICT
Hmm, I just reread my response, and that may sound confusing with the fact
that you want to copy the graphical Data in gbuf to your Pic, so it may seem
logical to use (gbuf). But I should also add about the function of LDIR. This
command copies blocks of bytes from one location to another as you may know,
and the important thing to remember is you are passing Addresses through HL
(the source) and DE (the destination), and LDIR will take care of extracting
and copying the data from (HL) to (DE), for BC number of bytes, but it
requires the starting addresses, not the data within those memory locations.
-Jason_K
In a message dated 3/15/01 8:16:23 PM Central Standard Time, Jkhum98@aol.com
writes:
> gbuf is the 2-byte address of the memory location where Plotsscreen begins.
> This is 8E29h on the TI-83 and 9340h on the TI-83 Plus. "ld hl, gbuf" will
> store that 2-byte value into HL. The syntax (gbuf) means the value of the
> data stored within gbuf, at the first byte of the Plotsscreen memory
> location. If you filled Plotsscreen all with black pixels, then "ld a,
> (gbuf)" would put $FF into A. When working with HL using "ld hl, (gbuf)"
> then it takes the first byte out into L, and the following byte into H. So
> "gbuf" is the label/equate/address, and "(gbuf)" is the data at that
> address.
>
> -Jason_K
>
>
> In a message dated 3/15/01 7:55:14 PM Central Standard Time,
> Sk8a4good@aol.com writes:
>
> >
> > THANK YOU!!!!!! It worked when I took off the parenthesis. Sorry about
> > that, but I thought TASM would give me an error if I didnt have them.
> > What
> > is the difference b/w gbuf and (gbuf)?
> >
> > Thanks Again,
> > Cole
> >