Calculator Community > Axe

Transitioning from TI-Basic to Axe Basic

(1/6) > >>

SirCmpwn:
Hello,
Another tutorial, this one by request.
Axe Basic gives you a lot of new functions for TI-Basic, but does not support a lot of the old ones yet.  This guide should get you off the ground with Axe.  This guide applies to version 0.1.4.  It isn't meant to replace the manual, but to compare.

Major Differences
|-------------------------------------------------------------------------------|
|TI-Basic Version                       |Axe Version                            |
|---------------------------------------+---------------------------------------|
|===Lists===                            |===RAM Areas===                        |
|Lists in TI-Basic are simply lists of  |Axe does not have lists, but rather    |
|numbers.  You can store to them like   |gives you areas of RAM to store in.    |
|so: 5→L1(1) or {5→L1.                  |                                       |
|---------------------------------------+---------------------------------------|
|===Real Numbers===                     |===Unsigned Integers===                |
|In TI-Basic, you can store numbers as  |In Axe, you can store either one or two|
|large as you like, assuming there is   |bytes of data, for a maximum value of  |
|enough memory.                         |255 and 65536 respectively.            |
|---------------------------------------+---------------------------------------|
|===Graphing===                         |===Plotting===                         |
|In TI-Basic, you can graph pixels      |In Axe, you can only plot pixels based |
|according to the window settings.      |on the dimensions of the screen, from  |
|                                       |96 to 64.                              |
|---------------------------------------+---------------------------------------|
|===Sprites===                          |===Sprites===                          |
|You can use text sprites or assembly   |Axe has sprite support built-in.       |
|libraries.                             |                                       |
|---------------------------------------+---------------------------------------|
|===Data===                             |===Data===                             |
|In TI-Basic, you could copy a list or  |All data is embedded into the source   |
|matrix, or save a picture, or the like.|using the [] tokens.                   |
|-------------------------------------------------------------------------------|

Feel free to add to the above.

Common Tasks in Axe Basic

Storing Numbers to Lists
You have two options for storing numbers: 1 byte and 2 byte.  Storing one byte values (0-255) is easy:

--- Code: (Axe Basic) ---5→{L1}
--- End code ---
The trouble comes when you want to store to the next element in the list, which you can do like so:

--- Code: (Axe Basic) ---5→{L1+1} // List name + offset
--- End code ---

To store 2 byte nubmers (normal numbers):

--- Code: (Axe Basic) ---5→{L1}ᴿ
--- End code ---

However, storing two byte numbers has an important requirement: offsetting by two.  This is because each two byte number takes up two slots in the list.  So, to store to the second element while using two byte numbers, you should do this:

--- Code: (Axe Basic) ---5→{L1+2}ᴿ // List name + offset * 2
--- End code ---

I have to leave now, but I will keep editing this with more information as time progresses.  Please feel free to post questions about any of this in the topic.

meishe91:
Great comparisons! Looks cool.

DJ Omnimaga:
Nice, should help even more :)

Axe is pretty similar to TI-BASIC, but it's important to know the differences.

I love how Axe is still so close to TI-BASIC in terms of syntax compared to any other TI-83 language, though.

indubitably:
Thank you this is very helpful, I'll be checking back every now and the for updates.

Ti-newb:
Wow this stuff is great, I like how Axe has so many tutorials on it already rofl.

Navigation

[0] Message Index

[#] Next page

Go to full version