Re: A83: Lists & Tables
[Prev][Next][Index][Thread]
Re: A83: Lists & Tables
A list is just a series of bytes or words in memory in sequence. If it
is bytes, you can just add the item number (starting with 0) to the
label, ie. ld a,(table+4). Matrixs or tables will be exactly the same.
The data with just be a long list, but we have to know the width of the
data so that the address can be calculated. Always using 0 as the start
number: (table+(y*WIDTH)+x) is the general formula for accessing the
table[x][y]
> ti-83 wrote:
>
> I would like to do a table in one of my programs, for example :
>
> table:
> .db 5,A,8
> ..db 7,3,F
> ..db 2,1,4
>
> and I would that my program can access to this table and modify the
> number.
> How must I do ?
>
> Thanks
--
Scott "Wrath" Dial
wrath@calc.org
ICQ#3608935
Member of TCPA - tcpa.calc.org
_____________________________________________
NetZero - Defenders of the Free World
Click here for FREE Internet Access and Email
http://www.netzero.net/download/index.html
References: