Re: A85: Variables


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

Re: A85: Variables




    Actually in assembler you don't have variables to work with per say,
however you can use registers and memory for storing data (although
using memory is slower than using registers).  There are six "normal"
eight bit registers, which are A, B, C, D, H, and L as well as four 16
bit ones AB, CD, HL, and IX.  As you can probably guess, AB, CD, and HL
are the respective eight bit registers combined.  There are some extra
registers, so see chapter six of Jimmy Mårdell's Online ZShell School
for more information (http://www.algonet.se/~mja).
    You can also use memory to store data.  Memory can hold larger
amounts of data, however it is slower and more of a hassle to access.
Most people use the text memory, which is at $80DF, but there is an
alias defined in ti-85.h (or usgard.h or whatever you use) called
TEXT_MEM that most people use.

Hope this helps.

 - Jim


References: