Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Dreeass

Pages: [1]
1
Axe / Re: Ti Basic to Axe
« on: March 24, 2013, 08:12:17 pm »
Can you link me to a basic guide on Axe if there is one?

2
Axe / Ti Basic to Axe
« on: March 24, 2013, 08:28:18 am »
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}r
Also, 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
So I cannot define a specific length to it, I need to know how long I will make it? I think I got it.

Can I make an integer or double or whatever in Axe and call it whatever I want?

3
Axe / Re: Ti Basic to Axe
« on: March 23, 2013, 08:41:57 pm »
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.../L6
You can access these locations with the "{" and "}"
For example {L1 + 4} would access one byte of RAM at location L1+4

You 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 this

For (A,0,9)
Rand^256 -> {L1 + A}
End

hope 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.
Can you explain to me how I can access it, for example when I would build a snake game I would need to store the locations of the snake to delete and calculate the next position.

4
Axe / Ti Basic to Axe
« on: March 23, 2013, 07:15:58 pm »
You all do not know me here because this is my first post here so I'll tell you all a bit about myself to start off. I've started to develop Java first a while back and since then I'm more into web development, especially PHP since Ruby and Python aren't really my preference. And since I need my calculator which is a Ti-84 Plus, I was interesting in the built in programming language. After some playing around, I noticed it was a slow and not a very wide language if you know what I mean. So I looked up if some other languages existed for the Ti family and came across some and Axe looked the best.

But the simple programs I got on my calculator give quite a few errors and I looked all across Google to find my answers and I really can't find them. That's why I signed up here, to get my questions answered and get into Axe. My first question is how do I define a list in Axe, I'm used to using dim( in Ti basic and List or Array in Java, but don't know how Axe works yet.

Pages: [1]