Omnimaga

Calculator Community => TI Calculators => General Calculator Help => Topic started by: danny90444 on June 18, 2012, 08:57:34 pm

Title: programming help
Post by: danny90444 on June 18, 2012, 08:57:34 pm
HI , I just started programming about a month and a half ago and i know some Ti 84 Basic and Axe parser . I could use some help just learning the language and the commands for both of these languages. Any help would be appreciated and you can email me at [email protected].

P.S. If you want to post or pm any advice please note that i don't understand much of the language even used on this website and will need most of it explained in your message.


Thanks in advance!
Title: Re: programming help
Post by: Darl181 on June 18, 2012, 09:10:30 pm
For Axe, there's commands list that comes with it.  It's also here (http://ourl.ca/8409).
It should help to read through documentation.pdf that also comes in the zip (or here (http://eeems.omnimaga.org/Files/Resources/program%20readmes/Axe/Documentation.pdf)).  That'll probably help the most with the programming terms etc ;)

For Basic commands, you might want to check TI-Basic developer, it has a good list (http://tibasicdev.wikidot.com/command-index), and it explains what the commands do as well.
Title: Re: programming help
Post by: shmibs on June 18, 2012, 11:19:20 pm
hey, you!
darl has some great advice. reading the documentation should always be your first step when trying to learn a new language. beyond that. the easiest way to get help is to think of something specific you want to accomplish (i.e. draw a character that can be moved around the screen, make a simple pong game, or something like that) and then ask on here how you could go about accomplishing it.
good luck!
Title: Re: programming help
Post by: Hayleia on June 19, 2012, 01:10:50 am
(wrong section ? :P)
Yes, first make some easy little programs to get used to the difference between both languages. And always keep in mind that Axe is not basic ;)
Title: Re: programming help
Post by: DJ Omnimaga on June 19, 2012, 03:09:49 am
Also welcome to the forums :)
Title: Re: programming help
Post by: TIfanx1999 on June 19, 2012, 07:23:21 am
Hello there danny, welcome to Omnimaga. :) Do you have any programs currently in the works? You can create a topic in the appropriate section and show off what you are working on. If you have any specific questions, or need help with your code feel free to ask in the appropriate forum.
Title: Re: programming help
Post by: parserp on June 19, 2012, 08:25:29 pm
Agreed with darl. We can't just help you "learn the language", it's better for you to try to do some stuff and post your questions here. :)
Also hi and welcome to the forums. :D
Title: Re: programming help
Post by: danny90444 on June 20, 2012, 09:32:41 pm
which topic should i have posted this in? Sorry im new so i didnt know where to put it . Im working on a guessing game similar to the one i made in Basic . It would help if someone could explain input like how to get the a person to enter a number . i read the documentation included and the commands.The only thing ive come up with for my game is to guess a single digit number but i dont know what to do after that . If possible could someone explain the 'r' used in axe please
Title: Re: programming help
Post by: shmibs on June 20, 2012, 11:39:59 pm
the built-in input routine in axe isn't really worth using. instead, you should use the getkey command and custom design your own interface. to maintain speed and size optimisation, getkey uses the same values as the OS does, rather than the BASIC getkey layout. numbers 0,1,4,7 are values 33-36, 2,5,8 are 26-28, 3,6,9 are 18-20, and enter is 9.
to test them, just stick a line that says getkey->D (or any other variable) before all your key tests and then have if statements later on that say If D=value (or !If D-value, if you want a faster, but slightly less intelligible version). then you'll have to use the Text or Disp commands to display values.

the little r is accessible through Angle,3, and it's used, for the most part, to indicate that a drawing function should draw to the back buffer rather than the front buffer. one of the main reasons that asm is so much faster than BASIC is that all it's drawing functions update the screen immediately as things are drawn, which requires sending 768 bytes to the LCD every time, while setting a few pixels in axe requires only copying a few bytes to the screen buffer and then sending those values to the LCD manually when you use the DispGraph command. there is also a second buffer, called the back buffer, that can have completely different things drawn to it simultaneously, and it can be drawn through L6->DispGraph, or used in tandem with the other buffer to draw greyscale images.

as for where to post, if you're looking for a thread to ask quick questions like this, head on over to Axe Q&A (http://ourl.ca/9165), or if you have a more in-depth question, create a new topic in the Axe Language subforum (http://www.omnimaga.org/index.php?board=162.0).