Author Topic: Differences in language btwn TIBASIC and AXE  (Read 2209 times)

0 Members and 1 Guest are viewing this topic.

Offline asi14

  • LV1 Newcomer (Next: 20)
  • *
  • Posts: 11
  • Rating: +1/-0
    • View Profile
Differences in language btwn TIBASIC and AXE
« on: March 11, 2014, 11:30:53 pm »
Any differences? When I saw a screenshot of Axe, I couldnt tell much of a difference. Either I am not experienced enough in programming, or I just need to read more.  :banghead: :banghead: :banghead: :banghead: :banghead: :banghead: :banghead: :banghead: :banghead:

Offline Hayleia

  • Programming Absol
  • Coder Of Tomorrow
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3367
  • Rating: +393/-7
    • View Profile
Re: Differences in language btwn TIBASIC and AXE
« Reply #1 on: March 12, 2014, 01:56:38 am »
Try running this code in Basic:
Code: [Select]
.AA
Data(|pi|11111111,|pi|01111111,|pi|00111111,|pi|00011111,|pi|00001111,|pi|00000111,|pi|00000011,|pi|00000001,|pi|00000000)->GDB0

L1->°AA
L1+3->°BB
ClrDraw(L1)
While 1
 BB+getKey(3)-getKey(2)+96^96->BB
 AA+getKey(1)-getKey(4)^64->AA
 65535->Q
 For(8 )
  Select({BB^8+GDB0},->{Q+++AA^64*12+(BB/8->r3)+L6->r2}) xor |pi|11111111
  ->{r3-11??r2-11,r2+1}
 End
 DispGraphClrDraw
EndIf getKey(15)

Basic is interpreted and Axe is compiled, so usually, Basic is slower than Axe in games but smaller. However, Basic is more apropriate for maths program.
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: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Differences in language btwn TIBASIC and AXE
« Reply #2 on: March 12, 2014, 02:27:13 am »
Most Axe 0.03 code is nearly identical to TI-BASIC, but like Hayleia said, Axe is compiled and most newer code is different. Axe runs much faster than TI-BASIC. If you had an Axe program run nearly as slow as a BASIC one, then there is most likely something you did wrong, such as using a DispGraph command after drawing each pixel/line/text char/etc.

Offline Sorunome

  • Fox Fox Fox Fox Fox Fox Fox!
  • Support Staff
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 7920
  • Rating: +374/-13
  • Derpy Hooves
    • View Profile
    • My website! (You might lose the game)
Re: Differences in language btwn TIBASIC and AXE
« Reply #3 on: March 12, 2014, 09:37:36 am »
I would rather ask for the similarities:
  • Both are programmable on-calc
  • Both run on the TI-84+
  • Some syntax similarities on basic structures (if, while)
  • ...
As already mentioned, Axe is been compiled to machine code, so it doesn't need an external program, an interpreter, to run it. While Axe is good for games and such stuff, Basic is far better for math-intensive programs as the interpreter already has a lot of math functions.

THE GAME
Also, check out my website
If OmnomIRC is screwed up, blame me!
Click here to give me an internet!