Author Topic: Axe Parser  (Read 552044 times)

0 Members and 7 Guests are viewing this topic.

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 #570 on: May 10, 2010, 10:57:32 pm »
I think if cross calc compatibility is broken with certain commands, there should be a warning in the doc for each commands. If it just breaks compatibility between 6 and 15 MHz mode (like I think), then the command list should simply warn to not use the 15 MHz command on a regular 83+ or in 6 MHz mode and to not use the 6 MHz commands in 15 MHz mode (use Normal beforehand).

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 #571 on: May 11, 2010, 12:27:00 am »
I actually switch to 6MHz before grayscale display in Chip's Challenge. It's not an uncommon method.
"Most people ask, 'What does a thing do?' Hackers ask, 'What can I make it do?'" - Pablos Holman

Offline meishe91

  • Super Ninja
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2946
  • Rating: +115/-11
    • View Profile
    • DeviantArt
Re: Axe Parser
« Reply #572 on: May 11, 2010, 12:29:30 am »
Just as a quick side question: Does 15MHz have any advantage over 6MHz besides for speed?
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 #573 on: May 11, 2010, 12:30:48 am »
I actually switch to 6MHz before grayscale display in Chip's Challenge. It's not an uncommon method.
Alright, that reinforces my thoughts.  If you want 15MHz grayscale, you will have to switch to 6MHz manually to display it.  Even if some new programmer accidentally tries it in the 15MHz mode, it doesn't crash the calc or anything, it just displays funky garbage on the screen, so its not a big deal.
___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 #574 on: May 11, 2010, 12:31:57 am »
ooooh ok, like when I beta tested xLIB on a SE back in its early app days x.x I am kinda glad it won't crash.

Will the 6 MHz command remain DispGraphr btw?
« Last Edit: May 11, 2010, 12:32:22 am by DJ Omnimaga »

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 #575 on: May 11, 2010, 07:44:42 am »
I actually switch to 6MHz before grayscale display in Chip's Challenge. It's not an uncommon method.
That makes it sound a lot better.  I now think this is the best method. :D
Would DispGraph automatically put it in 6mhz, or would the user have to do this themselves?
« Last Edit: May 11, 2010, 07:44:49 am by ztrumpet »

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 #576 on: May 11, 2010, 12:37:47 pm »
I could have it do that for you, but I'd rather the programmer do it themselves since those making 6MHz games won't want to have the extra size increase for a feature they're not using.
___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 #577 on: May 11, 2010, 12:44:54 pm »
Does calling the grayscale from a sub-routine slows it down a lot? If not, then I guess this would be the best solution. Otherwise, my big concern ATM is the increase in file size due to having to use Normal:Dispgraphr:Full instead of Dispgraphr. With about 20-30 grayscale commands total, would the increase in code size be considerable?

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 #578 on: May 11, 2010, 12:51:43 pm »
No, a subroutine is negligible unless its called over 9000 times per second.  Typically, the screen updates around 20-60 times a second.
« Last Edit: May 11, 2010, 12:52:36 pm by Quigibo »
___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 #579 on: May 11, 2010, 12:53:53 pm »
Ok thanks. I guess it shouldn't be that bad, then.

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 #580 on: May 11, 2010, 04:08:02 pm »
I could have it do that for you, but I'd rather the programmer do it themselves since those making 6MHz games won't want to have the extra size increase for a feature they're not using.
Ah, very good point! :)
I like how things are headed.

Full and Normal translate to one byte of code more each, right?

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 #581 on: May 11, 2010, 07:08:39 pm »
2 bytes in the source code if you include the colon.  The actual size in the executable is 9 and 3 bytes for Full and Normal respectively.  Full is a little larger because it also returns if the calculator was successful in running 15MHz mode, which is used to distinguish what type of calculator is being used.
___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 #582 on: May 11, 2010, 10:15:19 pm »
Ah, okay.  Can there be a Full that doesn't return, so it would be smaller and faster if you want it to be?  I'm all for compiled size and speed. ;D
Thanks!

Offline kindermoumoute

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 836
  • Rating: +54/-3
    • View Profile
Re: Axe Parser
« Reply #583 on: May 15, 2010, 12:01:55 pm »
I am French, I love what you made, I'm still learning axe parser!
Projects :

Worms armageddon z80 :
- smoothscrolling Pixelmapping : 100%
- Map editor : 80%
- Game System : 0%

Tutoriel français sur l'Axe Parser
- 1ère partie : en ligne.
- 2ème partie : en ligne.
- 3ème partie : en ligne.
- 4ème partie : 10%
- Annexe : 100%

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 #584 on: May 15, 2010, 12:05:21 pm »
Hi and welcome here. Glad you like it!