0 Members and 1 Guest are viewing this topic.
you don't need to define a list in axe.You have 6 memory locations you can use that vary in size and dangers. L1/L2/L3.../L6You can access these locations with the "{" and "}"For example {L1 + 4} would access one byte of RAM at location L1+4You can easily use this to make a list.for example. if you wanted to make a list of 10 random one byte numbers, you could do thisFor (A,0,9)Rand^256 -> {L1 + A}Endhope i explained that well enough.Rand makes a random number between 0 and 65535 i think.^256 is modulus (you don't really need it as it'd only save 8 bits to that location anyways, but o added it to... um not sure why i did)A is a variable{L1 + A} is a changing memory location as A is changing.
So to store something into RAM, you simply store into the memory location with a pointer (in code, X -> {L1+4} would store X to that value)So instead of accessing something like L1(5), you access the fifth byte with {L1+4}. The other stuff carries over from TI-Basic, mostly, except that you're only storing a byte. If you want full 16 bit values (up to 65535) you simply add the r after the curly brackets like this: {L1+4}rAlso, one more thing. L1 is just a pointer to a free piece of RAM. It's not a list, and if you allocate more RAM for yourself or write into program data, you can use that too. I remember seeing something here about pointer arithmetic... see http://axe.eeems.ca/Documentation.pdf, page 13
I recommend writing down what you're storing and where.