Author Topic: programming help  (Read 9681 times)

0 Members and 1 Guest are viewing this topic.

Offline danny90444

  • LV3 Member (Next: 100)
  • ***
  • Posts: 41
  • Rating: +0/-0
  • Physics :)
    • View Profile
    • facebook
programming help
« 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!
Schrodinger's cat walks into a bar... and doesn't.

Offline Darl181

  • «Yo buddy, you still alive?»
  • CoT Emeritus
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3408
  • Rating: +305/-13
  • VGhlIEdhbWU=
    • View Profile
    • darl181.webuda.com
Re: programming help
« Reply #1 on: June 18, 2012, 09:10:30 pm »
For Axe, there's commands list that comes with it.  It's also here.
It should help to read through documentation.pdf that also comes in the zip (or here).  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, and it explains what the commands do as well.
« Last Edit: June 18, 2012, 09:11:16 pm by Darl181 »
Vy'o'us pleorsdti thl'e gjaemue

Offline shmibs

  • しらす丼
  • Administrator
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2132
  • Rating: +281/-3
  • try to be ok, ok?
    • View Profile
    • shmibbles.me
Re: programming help
« Reply #2 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!

Offline Hayleia

  • Programming Absol
  • Coder Of Tomorrow
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3367
  • Rating: +393/-7
    • View Profile
Re: programming help
« Reply #3 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 ;)
I own: 83+ ; 84+SE ; 76.fr ; CX CAS ; Prizm ; 84+CSE
Sorry if I answer with something that seems unrelated, English is not my primary language and I might not have understood well. Sorry if I make English mistakes too.

click here to know where you got your last +1s

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55942
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: programming help
« Reply #4 on: June 19, 2012, 03:09:49 am »
Also welcome to the forums :)
Now active at https://discord.gg/cuZcfcF (CodeWalrus server)

Offline TIfanx1999

  • ಠ_ಠ ( ͡° ͜ʖ ͡°)
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 6173
  • Rating: +191/-9
    • View Profile
Re: programming help
« Reply #5 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.

Offline parserp

  • Hero Extraordinaire
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1455
  • Rating: +88/-7
  • The King Has Returned
    • View Profile
Re: programming help
« Reply #6 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

Offline danny90444

  • LV3 Member (Next: 100)
  • ***
  • Posts: 41
  • Rating: +0/-0
  • Physics :)
    • View Profile
    • facebook
Re: programming help
« Reply #7 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
« Last Edit: June 20, 2012, 09:42:18 pm by danny90444 »
Schrodinger's cat walks into a bar... and doesn't.

Offline shmibs

  • しらす丼
  • Administrator
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2132
  • Rating: +281/-3
  • try to be ok, ok?
    • View Profile
    • shmibbles.me
Re: programming help
« Reply #8 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, or if you have a more in-depth question, create a new topic in the Axe Language subforum.