• Axe Parser 5 1
Currently:  

Author Topic: Axe Parser  (Read 546098 times)

0 Members and 2 Guests are viewing this topic.

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 #825 on: June 18, 2010, 11:28:47 pm »
Nope. Those kind of variables are static pointers.
Once you write data in them, they stay that way.
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 meishe91

  • Super Ninja
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2946
  • Rating: +115/-11
    • View Profile
    • DeviantArt
Re: Axe Parser
« Reply #826 on: June 19, 2010, 12:01:23 am »
Ya, what Raylin said is right. What you can do however is something like

Code: [Select]
[FFFFFFFFFFFFFFFF
0000000000000000]→Pic1
If getKey(1)
0→A
End
If getKey(2)
8→A
End
Pt-On(0,0,Pic1+A

Obviously not the best method but a general idea, hopefully.
Spoiler For Spoiler:



For the 51st time, that is not my card! (Magic Joke)

Offline nemo

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1203
  • Rating: +95/-11
    • View Profile
Re: Axe Parser
« Reply #827 on: June 19, 2010, 09:49:09 am »
optimized:
Code: [Select]
0→A
[0000000000000000→Pic1
[FFFFFFFFFFFFFFFF
Pt-On(0,0,getKey(2)*8→A+Pic1



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 #828 on: June 19, 2010, 10:40:42 am »
Random question: are Pauses in clock cycles? For example, would a Pause 500 halt execution of everything for 499 clock cycles?

Offline Magic Banana

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 371
  • Rating: +77/-1
  • It's not an apple, it's a ... magic banana.
    • View Profile
Re: Axe Parser
« Reply #829 on: June 19, 2010, 10:47:54 am »
Most likely. I noticed a huge difference in pauses when going between 6 and 15mhz while testing my programs.
I do sprites and stuff, so yeah.

Quote from: yunhua98
i'M NOT SURE WHAT A SWORD SKILL IS BUT HERE'S THE SWORD ANIMATION FROM THE TWO SPRITES ON PG 13

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 #830 on: June 19, 2010, 10:48:24 am »
was it like 2-2.5x faster or even faster?

On my 83+ there are things that won't necessarly go just 2.5x slower. For example, when exiting Axe parser, there is a 2 seconds pause.
« Last Edit: June 19, 2010, 10:49:27 am by DJ Omnimaga »

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 #831 on: June 19, 2010, 10:52:59 am »
was it like 2-2.5x faster or even faster?

On my 83+ there are things that won't necessarly go just 2.5x slower. For example, when exiting Axe parser, there is a 2 seconds pause.
Eh, it seems that Quigibo is unarchiving the AxeData appvar and rearchiving it every time you run the app. Quigibo, does it really need to be archived? It just holds a couple of options...
"Most people ask, 'What does a thing do?' Hackers ask, 'What can I make it do?'" - Pablos Holman

Offline Magic Banana

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 371
  • Rating: +77/-1
  • It's not an apple, it's a ... magic banana.
    • View Profile
Re: Axe Parser
« Reply #832 on: June 19, 2010, 10:55:32 am »
Yeah, I'd say it's about 2-2.5x faster in Full for whatever pause you set it to.

Yeah, I've had the Axe parser take a little bit to exit. Usually garbage Collecting gets things back up to speed.
If it's really bogging down your calc, you can delete the App and just transfer it again. I noticed that seems to speed up the parsing time. It seems to me like the more it's used, it slows down just a little bit, but after you clean some stuff, it goes right back to speed.
I do sprites and stuff, so yeah.

Quote from: yunhua98
i'M NOT SURE WHAT A SWORD SKILL IS BUT HERE'S THE SWORD ANIMATION FROM THE TWO SPRITES ON PG 13

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 #833 on: June 19, 2010, 11:05:02 am »
was it like 2-2.5x faster or even faster?

On my 83+ there are things that won't necessarly go just 2.5x slower. For example, when exiting Axe parser, there is a 2 seconds pause.
Eh, it seems that Quigibo is unarchiving the AxeData appvar and rearchiving it every time you run the app. Quigibo, does it really need to be archived? It just holds a couple of options...
woops I didn't see that. X.x. IMHO it might be best if it was left unarchived. I sure don't mind re-enabling lowercase manually and setting up the shell again when going back in the APP next time.

Offline Magic Banana

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 371
  • Rating: +77/-1
  • It's not an apple, it's a ... magic banana.
    • View Profile
Re: Axe Parser
« Reply #834 on: June 19, 2010, 11:09:32 am »
^Yeah, I'd be fine with that too. I just leave it on no-shell all the time anyway. Besides, I already have like 3 other programs for enabling lowercase, so it wouldn't be a problem.
I do sprites and stuff, so yeah.

Quote from: yunhua98
i'M NOT SURE WHAT A SWORD SKILL IS BUT HERE'S THE SWORD ANIMATION FROM THE TWO SPRITES ON PG 13

Offline meishe91

  • Super Ninja
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2946
  • Rating: +115/-11
    • View Profile
    • DeviantArt
Re: Axe Parser
« Reply #835 on: June 19, 2010, 12:33:08 pm »
optimized:
Code: [Select]
0→A
[0000000000000000→Pic1
[FFFFFFFFFFFFFFFF
Pt-On(0,0,getKey(2)*8→A+Pic1



Oh, I wasn't aware you could use getKey like that. So I'm guessing it returns a one if it is pressed and a zero otherwise?
Spoiler For Spoiler:



For the 51st time, that is not my card! (Magic Joke)

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 #836 on: June 19, 2010, 12:36:22 pm »
was it like 2-2.5x faster or even faster?

On my 83+ there are things that won't necessarly go just 2.5x slower. For example, when exiting Axe parser, there is a 2 seconds pause.
Eh, it seems that Quigibo is unarchiving the AxeData appvar and rearchiving it every time you run the app. Quigibo, does it really need to be archived? It just holds a couple of options...

This is true I forgot about that.  I think I will only unarchive/archive at the end from now on if you actually changed any options.

EDIT: And pauses are directly proportional to clock cycles.  However each number on the pause is around 3350 clock cycles I believe.
« Last Edit: June 19, 2010, 12:39:09 pm by Quigibo »
___Axe_Parser___
Today the calculator, tomorrow the world!

Offline nemo

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1203
  • Rating: +95/-11
    • View Profile
Re: Axe Parser
« Reply #837 on: June 19, 2010, 12:38:22 pm »
meishe91: i'm not sure it'll work all the time under every circumstance, but my snippet of code works. (of course if you add in a dispgraph)


Offline meishe91

  • Super Ninja
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2946
  • Rating: +115/-11
    • View Profile
    • DeviantArt
Re: Axe Parser
« Reply #838 on: June 19, 2010, 12:46:46 pm »
meishe91: i'm not sure it'll work all the time under every circumstance, but my snippet of code works. (of course if you add in a dispgraph)

Ah ya, I was just referring to how you are using getKey as a test statement that returns one or zero. Ya, I also realized that we need the DispGraph :P
Spoiler For Spoiler:



For the 51st time, that is not my card! (Magic Joke)

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 #839 on: June 19, 2010, 01:01:04 pm »
was it like 2-2.5x faster or even faster?

On my 83+ there are things that won't necessarly go just 2.5x slower. For example, when exiting Axe parser, there is a 2 seconds pause.
Eh, it seems that Quigibo is unarchiving the AxeData appvar and rearchiving it every time you run the app. Quigibo, does it really need to be archived? It just holds a couple of options...

This is true I forgot about that.  I think I will only unarchive/archive at the end from now on if you actually changed any options.

EDIT: And pauses are directly proportional to clock cycles.  However each number on the pause is around 3350 clock cycles I believe.
mhmm that would mean Pause 1000 is approximately 3350000 clock cycles?