• Axe Parser 5 1
Currently:  

Author Topic: Axe Parser  (Read 553135 times)

0 Members and 1 Guest are viewing this topic.

SirCmpwn

  • Guest
Re: Axe Parser
« Reply #780 on: June 09, 2010, 07:21:47 pm »
Of course.

Offline Runer112

  • Project Author
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2289
  • Rating: +639/-31
    • View Profile
Re: Axe Parser
« Reply #781 on: June 09, 2010, 10:28:00 pm »
I'm just checking, because I thought somebody said this a while ago... can a program archive itself at the beginning of execution? And if so, what's a good way to make sure it exits in the same status as it began? With a variable?

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 #782 on: June 09, 2010, 10:37:31 pm »
@cooliojazz
I'm not sure what those addresses you're reading from are, maybe the ones to get the free ram?  Those would be 16-bit numbers, not bytes so you have to read them with the r modifier at the end to get the whole thing.  I'm guessing that should fix the error.

@Runner112
Yes and Yes.
___Axe_Parser___
Today the calculator, tomorrow the world!

Offline ztrumpet

  • The Rarely Active One
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5712
  • Rating: +364/-4
  • If you see this, send me a PM. Just for fun.
    • View Profile
Re: Axe Parser
« Reply #783 on: June 09, 2010, 10:39:54 pm »
can a program archive itself at the beginning of execution?
A basic program cannot archive itself when it's running, but an Asm program could possibly pull it off, just make sure it wouldn't write back over the original location.  It would probably be unstable, though, so I'd try to stay away from it. :)
Of course, before you take my word as "100% true", let's let an actual Asm programmer respond. ;D

Edit: Ninja'd.
« Last Edit: June 09, 2010, 10:40:20 pm by ztrumpet »

Offline Runer112

  • Project Author
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2289
  • Rating: +639/-31
    • View Profile
Re: Axe Parser
« Reply #784 on: June 09, 2010, 10:40:15 pm »
To figure out a program's starting status in/out of archive, you can use GetCalc(), right? Will turn up 0 if archived and anything else if not?

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: Axe Parser
« Reply #785 on: June 09, 2010, 11:17:25 pm »
It will return 0 if archived (or missing)

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 #786 on: June 11, 2010, 08:56:47 am »
[offtopic]Axe Parser 0.3.0 needs to come out so I can actually start my contest entry.[/offtopic]
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 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: Axe Parser
« Reply #787 on: June 11, 2010, 09:38:35 am »
I think he's extremly busy with school finals.

I personally don't expect a release until maybe like next week up to maybe middle of July in worst cases (if somehow he finishes school at the very end of June like some people), or even September if he leaves in vacation somewhere without internet access for all Summer long afterward. 0.2.6 might be what we have to do with for the remainder of the contest, this is something we need to keep in mind.

Also there has been more and more bugs arising since the past version or so it seems. He might have broken something in the parser when changing the math stuff or adding features to the compiler, that he needs to check for and this might take quite a while to fix.
« Last Edit: June 11, 2010, 09:41:15 am by DJ Omnimaga »

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 #788 on: June 11, 2010, 04:11:06 pm »
Next release will be around Wednesday June 16 if all goes as planned.  Yes, I am extremely busy with finals.  I probably won't log on here much until Monday.
___Axe_Parser___
Today the calculator, tomorrow the world!

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: Axe Parser
« Reply #789 on: June 11, 2010, 07:20:24 pm »
Aaah ok. Good luck!

Offline ztrumpet

  • The Rarely Active One
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5712
  • Rating: +364/-4
  • If you see this, send me a PM. Just for fun.
    • View Profile
Re: Axe Parser
« Reply #790 on: June 11, 2010, 10:20:13 pm »
Yes, I am extremely busy with finals.
Good luck with finals. :)

Offline cooliojazz

  • Support Staff
  • LV7 Elite (Next: 700)
  • *******
  • Posts: 619
  • Rating: +66/-9
  • I omnoms on your soul
    • View Profile
    • Unreal Phantasies
Re: Axe Parser
« Reply #791 on: June 11, 2010, 10:41:10 pm »
@Quigibo Even though you are correct, it does need to be both bytes for the correct value, that doesnt change the fact that H is different between those two times without me changing it... And no, that is not the places to get free ram...
Spoiler For Random signess:
You can not beat my skills.
Trust me.
So don't even try.
And remember never to trust someone who says, "Trust me."

TI File Editor Progress: Remade in java like a boss. 50% we'll call it? IDK =P
Java Libraries: JIRC - 90% JTIF - 5%
TI Projects: Unreal Notator - -5000%
Nomcraft, a Bukkit mod
Some of the music I write can be found here | The Rest Should Be Here (Bandcamp)

Offline squidgetx

  • Food.
  • CoT Emeritus
  • LV10 31337 u53r (Next: 2000)
  • *
  • Posts: 1881
  • Rating: +503/-17
  • rawr.
    • View Profile
Re: Axe Parser
« Reply #792 on: June 15, 2010, 04:50:20 pm »
Quick question on text displaying:

Code: [Select]
"XXXXX     ZZZZZZ    YYYYYYY   "->Str1
"XXXXX     "->Str2
While 1
getkey->K
A+(K=3)-(K=2)->A
conj(A*10+Str1,Str2,10
Text(30,30, Str2
End
This displays the proper string, but with random garbage characters afterwards, ie, "XXXXX eoppp"
I tried putting in Fill(Str2+9, 32) after the conj( line to overwrite possible garbage in Str2 with spaces, but with no success. Any thoughts?

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 #793 on: June 15, 2010, 05:03:56 pm »
Hmmm... I tested it and it works for me.  Are you sure Str2 is exactly 10 characters?  Maybe you mistyped it.
___Axe_Parser___
Today the calculator, tomorrow the world!

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 #794 on: June 15, 2010, 05:08:49 pm »
Quick question on text displaying:

Code: [Select]
"XXXXX     ZZZZZZ    YYYYYYY   "->Str1
"XXXXX     "->Str2
While 1
getkey->K
A+(K=3)-(K=2)->A
conj(A*10+Str1,Str2,10
Text(30,30, Str2
End
This displays the proper string, but with random garbage characters afterwards, ie, "XXXXX eoppp"
I tried putting in Fill(Str2+9, 32) after the conj( line to overwrite possible garbage in Str2 with spaces, but with no success. Any thoughts?
You didn't initialize A...
"Most people ask, 'What does a thing do?' Hackers ask, 'What can I make it do?'" - Pablos Holman