• Axe Parser 5 1
Currently:  

Author Topic: Axe Parser  (Read 488498 times)

0 Members and 2 Guests are viewing this topic.

Offline calc84maniac

  • eZ80 Guru
  • Coder Of Tomorrow
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2912
  • Rating: +471/-17
    • View Profile
    • TI-Boy CE
Re: Axe Parser
« Reply #1035 on: July 26, 2010, 12:32:34 am »
Perhaps you aren't allowed to use Y1 as a second argument to an operation. Maybe Y1+A instead?
"Most people ask, 'What does a thing do?' Hackers ask, 'What can I make it do?'" - Pablos Holman

Offline Quigibo

  • The Executioner
  • CoT Emeritus
  • LV11 Super Veteran (Next: 3000)
  • *
  • Posts: 2031
  • Rating: +1075/-24
  • I wish real life had a "Save" and "Load" button...
    • View Profile
Re: Axe Parser
« Reply #1036 on: July 26, 2010, 12:33:56 am »
Yeah, its a bug, change it to Y₁+A instead because Y₁ has to be first right now.

EDIT: Wow!  That was a really stupid mistake, I fixed it now.
« Last Edit: July 26, 2010, 12:49:01 am by Quigibo »
___Axe_Parser___
Today the calculator, tomorrow the world!

Offline Raylin

  • Godslayer
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1392
  • Rating: +83/-25
  • I am a certifiable squirrel ninja.
    • View Profile
    • Ray M. Perry
Re: Axe Parser
« Reply #1037 on: July 26, 2010, 12:55:20 am »
Hmm.

Will we see an update tonight?
Bug me about my book.

Sarah: TI-83 Plus Silver Edition [OS 1.19]
Cassie: TI-86 [OS 1.XX]
Elizabeth: TI-81 [OS 1.XX]
Jehuty: TI-83 Plus Silver Edition [OS 1.19]
Tesla: CASIO Prizm







Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: Axe Parser
« Reply #1038 on: July 26, 2010, 01:01:06 am »
Awesome job on Axe 0.4.0 :) Although thats too bad about the app compiling D: What seems to be the problem?

Offline Quigibo

  • The Executioner
  • CoT Emeritus
  • LV11 Super Veteran (Next: 3000)
  • *
  • Posts: 2031
  • Rating: +1075/-24
  • I wish real life had a "Save" and "Load" button...
    • View Profile
Re: Axe Parser
« Reply #1039 on: July 26, 2010, 01:16:56 am »
I have no idea, I've had so much trouble with it because the emulators don't pick it up and its usually either extremely rare or extremely hardware specific and there appears to be no pattern with any of it.  It all comes down to me guessing what the problem could be and then hoping I fixed it somehow.  I am going to try another strategy soon...
___Axe_Parser___
Today the calculator, tomorrow the world!

Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: Axe Parser
« Reply #1040 on: July 26, 2010, 01:32:37 am »
Yikes, i hope you can fix it O.O

Offline Runer112

  • Project Author
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2289
  • Rating: +639/-31
    • View Profile
Re: Axe Parser
« Reply #1041 on: July 26, 2010, 01:29:35 pm »
Quick question: can files like Y0-Y9 be reused in a program?

Offline calcdude84se

  • Needs Motivation
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2272
  • Rating: +78/-13
  • Wondering where their free time went...
    • View Profile
Re: Axe Parser
« Reply #1042 on: July 26, 2010, 01:31:49 pm »
AFAIK yes. Just reuse it with GetCalc.
"People think computers will keep them from making mistakes. They're wrong. With computers you make mistakes faster."
-Adam Osborne
Spoiler For "PartesOS links":
I'll put it online when it does something.

Offline imPersonator

  • LV1 Newcomer (Next: 20)
  • *
  • Posts: 17
  • Rating: +0/-0
    • View Profile
Re: Axe Parser
« Reply #1043 on: July 26, 2010, 04:34:48 pm »
Can Axe write to external variables?  In the documentation it shows how to read them, but not write to them.

Offline nemo

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1203
  • Rating: +95/-11
    • View Profile
Re: Axe Parser
« Reply #1044 on: July 26, 2010, 04:42:11 pm »
yes, you can write to external variables.
Code: [Select]
"Str1"->Str1
"0123456789ABCDEF"->Str2
GetCalc(Str1,16)->A    .the OS var Str1 is created and A is now a pointer to the beginning of the data
Copy(Str2,A,16)

after you exit the program, Str1 will have "0123456789ABCDEF" in it.


Offline imPersonator

  • LV1 Newcomer (Next: 20)
  • *
  • Posts: 17
  • Rating: +0/-0
    • View Profile
Re: Axe Parser
« Reply #1045 on: July 26, 2010, 04:48:03 pm »
Thanks! That almost exactly what I was trying (even the same string for Str2), but I didn't have the "->A" part at the end of GetCalc.  Why can't I just use Str1 as the pointer?

Offline calcdude84se

  • Needs Motivation
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2272
  • Rating: +78/-13
  • Wondering where their free time went...
    • View Profile
Re: Axe Parser
« Reply #1046 on: July 26, 2010, 04:51:28 pm »
Because normally Str1 is, well, a pointer. But it always points to data contained w/in the program.
Also, with 0.4.0, you can inline the text like 'GetCalc("Str1",16)->A'
"People think computers will keep them from making mistakes. They're wrong. With computers you make mistakes faster."
-Adam Osborne
Spoiler For "PartesOS links":
I'll put it online when it does something.

Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: Axe Parser
« Reply #1047 on: July 26, 2010, 04:58:42 pm »
Because when you initilize Str like this:

"Str1"->Str1

Its not initialized as a pointer to the Basic variable Str1, its initialized as a String that you can use in your program, that contains the text "Str1".  GetCalc parses the String, and returns a pointer that actually points to the file/variable that is inside the string.

Offline Runer112

  • Project Author
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2289
  • Rating: +639/-31
    • View Profile
Re: Axe Parser
« Reply #1048 on: July 26, 2010, 09:28:38 pm »
Another quick question: When using GetCalc() to designate space for an appvar, does GetCalc() automatically set all the designated bytes to 0? Or do I have to do that myself with Fill()? And while I'm on the topic of Fill(), the proper way to fill X bytes with a value is Fill(Value→{Pointer},X-1), right?
« Last Edit: July 26, 2010, 09:32:38 pm by Runer112 »

_player1537

  • Guest
Re: Axe Parser
« Reply #1049 on: July 26, 2010, 10:20:47 pm »
for the first question, no you will need to use Fill() or Copy() to do so (if you want it to be all zeros, fill is what you want).  Personally I haven't used fill(), so I can't help you there