Author Topic: Two questions about Axe Parser  (Read 4950 times)

0 Members and 1 Guest are viewing this topic.

Offline spud2451

  • LV2 Member (Next: 40)
  • **
  • Posts: 39
  • Rating: +3/-3
  • Life is simple, but we make it complicated ~conf.
    • View Profile
    • Red Rock Creative [Free Custom Websites]
Two questions about Axe Parser
« on: June 25, 2012, 11:40:14 am »
Hey everyone I have a few questions about axe parser. First how do you access the system's ANS variable in axe?. how would you run different programs from axe. If anyone has any answers please reply. thanks (:c)

Offline Hayleia

  • Programming Absol
  • Coder Of Tomorrow
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3367
  • Rating: +393/-7
    • View Profile
Re: Two questions about Axe Parser
« Reply #1 on: June 25, 2012, 11:48:48 am »
how would you run different programs from axe.
This may help you :)
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 Matrefeytontias

  • Axe roxxor (kinda)
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1982
  • Rating: +310/-12
  • Axe roxxor
    • View Profile
    • RMV Pixel Engineers
Re: Two questions about Axe Parser
« Reply #2 on: June 25, 2012, 11:51:57 am »
You can access the real Ans like a classic variable :
Code: [Select]
9→AnsBut if you want to read it, then it's converted into 2 bytes number (unless you use the float{} func, but I don't know it enough)

Offline parserp

  • Hero Extraordinaire
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1455
  • Rating: +88/-7
  • The King Has Returned
    • View Profile
Re: Two questions about Axe Parser
« Reply #3 on: June 25, 2012, 12:08:55 pm »
Yes, if you do something like:
Code: [Select]
Ans->Xit will store the Ans variable to X (it will mess up if Ans is out of range of a 2 byte number)

Offline spud2451

  • LV2 Member (Next: 40)
  • **
  • Posts: 39
  • Rating: +3/-3
  • Life is simple, but we make it complicated ~conf.
    • View Profile
    • Red Rock Creative [Free Custom Websites]
Re: Two questions about Axe Parser
« Reply #4 on: June 26, 2012, 01:12:01 pm »
can anyone tell me how to run a program from axe without downloading anything please?

Offline parserp

  • Hero Extraordinaire
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1455
  • Rating: +88/-7
  • The King Has Returned
    • View Profile
Re: Two questions about Axe Parser
« Reply #5 on: June 26, 2012, 01:14:45 pm »
can anyone tell me how to run a program from axe without downloading anything please?
Sadly, it is not possible without the axiom D: (unless you know asm hexcodes)
« Last Edit: June 26, 2012, 01:40:30 pm by parserp »

Offline aeTIos

  • Nonbinary computing specialist
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3915
  • Rating: +184/-32
    • View Profile
    • wank.party
Re: Two questions about Axe Parser
« Reply #6 on: June 26, 2012, 01:24:59 pm »
Well that's not really true. Lemme look it up :)
About question 1: If you want to store a program's output in ans, that's pretty easy. I think I have a little routine for that. If you want to read ANS, that's a bit more complicated since axe only works with integers (so no decimals). If you have no decimals and/ or don't care about them, I have a routine for that too.

« Last Edit: June 26, 2012, 01:29:50 pm by aeTIos »
I'm not a nerd but I pretend:

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: Two questions about Axe Parser
« Reply #7 on: June 26, 2012, 04:26:44 pm »
About question 1: If you want to store a program's output in ans, that's pretty easy. I think I have a little routine for that. If you want to read ANS, that's a bit more complicated since axe only works with integers (so no decimals). If you have no decimals and/ or don't care about them, I have a routine for that too.
As people have said already, if you're just working with a two-byte integer, you can just use whatever→Ans and Ans→whatever. Only problem is that your program will throw an error if Ans isn't between 0 and 65,535.
« Last Edit: June 26, 2012, 04:29:44 pm by Deep Thought »




Offline aeTIos

  • Nonbinary computing specialist
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3915
  • Rating: +184/-32
    • View Profile
    • wank.party
Re: Two questions about Axe Parser
« Reply #8 on: June 26, 2012, 04:47:38 pm »
Does that also work with the OS variable? O.O
I'm not a nerd but I pretend:

Offline shmibs

  • しらす丼
  • Administrator
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2132
  • Rating: +281/-3
  • try to be ok, ok?
    • View Profile
    • shmibbles.me
Re: Two questions about Axe Parser
« Reply #9 on: June 26, 2012, 05:43:22 pm »
no, just with ans. the others are a simple getcalc()->pointer, value->pointer, though

Offline aeTIos

  • Nonbinary computing specialist
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3915
  • Rating: +184/-32
    • View Profile
    • wank.party
Re: Two questions about Axe Parser
« Reply #10 on: June 26, 2012, 05:46:07 pm »
I meant "Does that also work with the OS variable ANS"? So yeah O.O didna knodat.
I'm not a nerd but I pretend:

Offline Matrefeytontias

  • Axe roxxor (kinda)
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1982
  • Rating: +310/-12
  • Axe roxxor
    • View Profile
    • RMV Pixel Engineers
Re: Two questions about Axe Parser
« Reply #11 on: June 26, 2012, 07:09:24 pm »
There is only one Ans var, even in Axe programs, the OS's.