• Axe Q&A 5 5
Currently:  

Author Topic: Axe Q&A  (Read 600281 times)

0 Members and 5 Guests are viewing this topic.

Offline Aspiring

  • LV3 Member (Next: 100)
  • ***
  • Posts: 81
  • Rating: +5/-0
  • The only source of knowledge is experience-Einsten
    • View Profile
Re: Axe Q&A
« Reply #1710 on: March 29, 2014, 01:23:48 pm »
This question has probably already been asked but... is there any way to run a line of basic code in axe?  If some other app like mirage os or doors cs is required I don't mind.  I want this so I can access basic functions that are added by apps like omnicalc and some others.

Offline aeTIos

  • Nonbinary computing specialist
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3915
  • Rating: +184/-32
    • View Profile
    • wank.party
Re: Axe Q&A
« Reply #1711 on: March 29, 2014, 01:44:56 pm »
There sure is! I, however, have to look up how to do that.
I'm not a nerd but I pretend:

Offline Aspiring

  • LV3 Member (Next: 100)
  • ***
  • Posts: 81
  • Rating: +5/-0
  • The only source of knowledge is experience-Einsten
    • View Profile
Re: Axe Q&A
« Reply #1712 on: March 29, 2014, 02:08:50 pm »
Ok I found this Asm(E7FDCB08CEEF9B4AFDCB088E) but it only executes programs in the program menu but I was hoping that I could execute a string instead.  :/   Maybe I could create a string and copy it to a temporary program and execute that.

Offline Hayleia

  • Programming Absol
  • Coder Of Tomorrow
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3367
  • Rating: +393/-7
    • View Profile
Re: Axe Q&A
« Reply #1713 on: March 29, 2014, 04:35:46 pm »
I found that this code you mentionned here is mentionned here and can run "the program you want" if you put a pointer to the name of the program in hl.
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 ClrDraw

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 627
  • Rating: +61/-2
    • View Profile
    • GitHub
Re: Axe Q&A
« Reply #1714 on: March 29, 2014, 05:00:28 pm »
Do the input and prompt commands still work when run through axe?
Visit my GitHub for all my TI programs as well as other projects.
Also check out my website.

Offline shmibs

  • しらす丼
  • Administrator
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2132
  • Rating: +281/-3
  • try to be ok, ok?
    • View Profile
    • shmibbles.me
Re: Axe Q&A
« Reply #1715 on: March 30, 2014, 02:35:16 am »
Ok I found this Asm(E7FDCB08CEEF9B4AFDCB088E) but it only executes programs in the program menu but I was hoping that I could execute a string instead.  :/   Maybe I could create a string and copy it to a temporary program and execute that.

you sure can! take a look at this old post to get an idea of how managing OS variables can be done from within axe.
Do the input and prompt commands still work when run through axe?

the BASIC commands input and prompt store values into OS variables. if you know how to access those variables from axe (see above), you could use them to get values. however, doing so is honestly a lot more work than just writing your own input command, as you'd have to generate a program to run, execute it, convert  from OS floats to integer values for any numbers you want, and then delete the program afterwards. if you want a quick example of how one might go about making an input routine for axe, take a look at this topic.

Offline josh landers

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 116
  • Rating: +1/-0
    • View Profile
Re: Axe Q&A
« Reply #1716 on: March 30, 2014, 02:40:39 pm »
Wait are you trying to execute the name of your program useing that asm code?
If so just use the following
Code: [Select]
:"prgmA"
:asm(hexcode here)

Offline NikProgrammer

  • LV3 Member (Next: 100)
  • ***
  • Posts: 50
  • Rating: +0/-0
  • Calc's are the most handy thing ever invented :D
    • View Profile
Re: Axe Q&A
« Reply #1717 on: April 22, 2014, 03:35:07 am »
Hello, I'm new here and I need some help of authorized personal:). Ok, first, I'm afraid of overwriting something important in my TI 83's memory. How can I avoid this? And second... I was coding in TI-Basic for a few months and after those few months there was nothing new to learn from YouTube, so I decided to learn the Axe language. Now, I'm totaly confused and just want to know how I can store a number in a variable and keep it after quitting the program?
P.S.: Sorry for my english.
Well, I'm not english or american so if anything posted by me is not correct just say or ignore...
And please don't set me back because I live in germay... Though I speak german I am still from UA!
––––––––––––––––––––––––––––––––––––––––––––––––––––
It may sound weird but:
'The teapot cools down long.'
and
'The teapot does not cool down long.'
means the same.

What for do we live? - To think of why we do live.
––––––––––––––––––––––––––––––––––––––––––––––––––––
Loving chess- If you know any good chess programs for TI-83+ please PM me- thanks!
Working on Remakes for all of my programs to optimize them and add more user friendliness... And most important: Graphics. I'm not good at graphics, every help is welcome... -Please PM too.

Offline Streetwalrus

  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3821
  • Rating: +80/-8
    • View Profile
Re: Axe Q&A
« Reply #1718 on: April 22, 2014, 03:44:46 am »
Hello, I'm new here and I need some help of authorized personal:). Ok, first, I'm afraid of overwriting something important in my TI 83's memory.
If you have a TI-83 it will be hard to use Axe on it. :P
J/k, also it won't overwrite anything.

Offline NikProgrammer

  • LV3 Member (Next: 100)
  • ***
  • Posts: 50
  • Rating: +0/-0
  • Calc's are the most handy thing ever invented :D
    • View Profile
Re: Axe Q&A
« Reply #1719 on: April 22, 2014, 04:49:23 am »
It's a 83+☺
Well, I'm not english or american so if anything posted by me is not correct just say or ignore...
And please don't set me back because I live in germay... Though I speak german I am still from UA!
––––––––––––––––––––––––––––––––––––––––––––––––––––
It may sound weird but:
'The teapot cools down long.'
and
'The teapot does not cool down long.'
means the same.

What for do we live? - To think of why we do live.
––––––––––––––––––––––––––––––––––––––––––––––––––––
Loving chess- If you know any good chess programs for TI-83+ please PM me- thanks!
Working on Remakes for all of my programs to optimize them and add more user friendliness... And most important: Graphics. I'm not good at graphics, every help is welcome... -Please PM too.

Offline Streetwalrus

  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3821
  • Rating: +80/-8
    • View Profile
Re: Axe Q&A
« Reply #1720 on: April 22, 2014, 05:02:17 am »
I understood, it was just a joke. :P
It won't overwrite anything but you still have the potential of losing data so make sure everything is archived and backup on your computer often.

Offline NikProgrammer

  • LV3 Member (Next: 100)
  • ***
  • Posts: 50
  • Rating: +0/-0
  • Calc's are the most handy thing ever invented :D
    • View Profile
Re: Axe Q&A
« Reply #1721 on: April 22, 2014, 05:41:05 am »
Most of my stuff is archived and I backuped yesterday. But I still cannot keep numbers after executing and quitting a program:(
Well, I'm not english or american so if anything posted by me is not correct just say or ignore...
And please don't set me back because I live in germay... Though I speak german I am still from UA!
––––––––––––––––––––––––––––––––––––––––––––––––––––
It may sound weird but:
'The teapot cools down long.'
and
'The teapot does not cool down long.'
means the same.

What for do we live? - To think of why we do live.
––––––––––––––––––––––––––––––––––––––––––––––––––––
Loving chess- If you know any good chess programs for TI-83+ please PM me- thanks!
Working on Remakes for all of my programs to optimize them and add more user friendliness... And most important: Graphics. I'm not good at graphics, every help is welcome... -Please PM too.

Offline Streetwalrus

  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3821
  • Rating: +80/-8
    • View Profile
Re: Axe Q&A
« Reply #1722 on: April 22, 2014, 05:45:33 am »
I'm too lazy to explain atm. :P This should help though : http://www.omnimaga.org/axe-language/external-vars-tutorial/

Offline Runer112

  • Project Author
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2289
  • Rating: +639/-31
    • View Profile
Re: Axe Q&A
« Reply #1723 on: April 22, 2014, 12:36:03 pm »
If you haven't already, you can check out pages 14-16 of the Documentation.pdf file included in the Axe download (check out the rest of it, too!). It covers the basics of reading and writing to external variables, and includes a simple example of how to retrieve/save a high score value in an external variable.

One thing it doesn't really mention is that it's a good idea to make sure saved data is archived before exiting, so it will persist through accidental RAM clears. You can do this simply with the Archive command (and then you'll probably want to UnArchive it when your game starts).
« Last Edit: April 22, 2014, 12:38:03 pm by Runer112 »

Offline NikProgrammer

  • LV3 Member (Next: 100)
  • ***
  • Posts: 50
  • Rating: +0/-0
  • Calc's are the most handy thing ever invented :D
    • View Profile
Re: Axe Q&A
« Reply #1724 on: April 22, 2014, 12:40:15 pm »
For example the following menu brings me always to the quit:

Code: [Select]
:.Lowrcase
:DiagnosticOff
:Lbl 00
:ClrHome
:3->A
:Output(0,1,"Lowercase")
:Output(2,3,"On")
:Output(2,4,"Off")
:Output(2,5,"Quit")
:2->B
:While 1
:Pause 200
:Output(1,A,">")
:Output(1,B,"   ")
:If getKey(1)
:A->B
:A+1->A
:End
:If getKey(4)
:A->B
:A-1->A
:End
:If A>5
:3->A
:5->B
:End
:If A=3
:If getKey(9)
:Goto ON
:End
:End
:If A=4
:If getKey(9)
:Goto OF
:End
:End
:If A=5
:If getKey(9)
:Goto ST
:End
:End
:End
:Lbl ST
:ClrHome
:Return
:Lbl ON
:Asm(FDCB24DEC9)
:ClrHome
:Disp "On"
:Pause 3000
:Goto 00
:Lbl OF
:Asm(FDCB249EC9)
:ClrHome
:Disp "Off"
:Goto 00
« Last Edit: April 22, 2014, 12:46:53 pm by Runer112 »
Well, I'm not english or american so if anything posted by me is not correct just say or ignore...
And please don't set me back because I live in germay... Though I speak german I am still from UA!
––––––––––––––––––––––––––––––––––––––––––––––––––––
It may sound weird but:
'The teapot cools down long.'
and
'The teapot does not cool down long.'
means the same.

What for do we live? - To think of why we do live.
––––––––––––––––––––––––––––––––––––––––––––––––––––
Loving chess- If you know any good chess programs for TI-83+ please PM me- thanks!
Working on Remakes for all of my programs to optimize them and add more user friendliness... And most important: Graphics. I'm not good at graphics, every help is welcome... -Please PM too.