• Axe Parser 5 1
Currently:  

Author Topic: Axe Parser  (Read 545475 times)

0 Members and 4 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 #630 on: May 25, 2010, 12:25:52 am »
Just making sure you weren't going through the whole load like "ld hl,address \ ld a,(hl) \ inc hl \ ld h,(hl) \ ld l,a" like you have to do for non-constant loads.
"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 #631 on: May 25, 2010, 12:28:25 am »
Oh yeah, actually I'm pretty sure it isn't now that you mention it.  Definitely easy enough to check for I suppose.  I'll see if I can get it working next version.
___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 #632 on: May 25, 2010, 12:30:38 am »
What are the planned new features (or optimizations/improvements) for the next version, by the way?

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 #633 on: May 25, 2010, 12:32:12 am »
I haven't started working on it yet, but probably all the stuff I was going to do last week but didn't have time for.
___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 #634 on: May 25, 2010, 12:55:58 am »
Ok, I forgot what it was though D: I know you were planning to try implementing something to check for possible optimizations by scanning through the code in advance when compiling, but I was not sure for which version it was planned.

EDIT Btw, I noticed that the 3 level grayscale command still works fine even if you forget to set the program to 6 MHz before running the command. I heard before that garbage would be displayed instead starting on Axe 0.2.3. Did you change your mind about the way the commands would work finally?

I am asking since I just compiled my Tunnel clone with Axe Parser 0.2.5 and the game still run without any glitches on my Nspire
« Last Edit: May 28, 2010, 04:36:01 am by DJ Omnimaga »

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 #635 on: May 25, 2010, 04:20:31 pm »
I'm wondering, doesn't the getcalc() return a pointer to the start of the data section of a file?  Cause it doesn't seem like it...  I mean, like obviously I can get all the data and stuff, that works fine, but trying to read backwards into the header...
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 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 #636 on: May 25, 2010, 04:22:09 pm »
It won't glitch on the Nspire or an emulator because they don't need the LCD delays.  But all the hardware is different and some LCD drives are slower than others and vary widely with different models.  Even my own calculator seems to have slightly different timing each time I use it based on the grayscale patterns I receive on what is usually perfect gray (possibly a temperature dependence?), so I would highly recommend switching into 6MHz mode during any grayscale displaying even if it works for your model.

EDIT: You should be able to read backwards into the header with a program or appvar header.  But if you're familiar with assembly, you'll know that the header data depends on the size of the program name and is in a weird backwards order I think (or is that the symbol table entry I'm thinking of).
« Last Edit: May 25, 2010, 04:25:37 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 #637 on: May 25, 2010, 04:24:05 pm »
aaah ok thanks for the info. I guess I'll do that in my next update of Axe Tunnel.

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 #638 on: May 25, 2010, 04:25:31 pm »
Question: Was SortA() and SortD() implemented yet?
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 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 #639 on: May 25, 2010, 04:31:17 pm »
Oh yeah, I completely forgot about that!  I actually did add it, but don't use it becasue I forgot to make the arguments in order.  Its currently sortA(size,ptr) but I will change it to sortA(ptr,size) probably.  Or I don't know, which one do you think is more intuitive?
___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 #640 on: May 25, 2010, 04:32:40 pm »
SortA(PTR,SIZE).

It just makes things uniform.
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 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 #641 on: May 25, 2010, 04:35:19 pm »
Umm, i have tried to read the data before the data pointer (which should be the header) but it is most definately NOT the header.  I was trying it with random programs (note: I am VERY familiar with program headers =P) and what came up was definately not a header.  Actually, it normally had the name of the program i was executing it from stuck in there somewhere... =P  Oh, and program headers are always constant.  And i think appvars are the same, not sure tho...
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 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 #642 on: May 25, 2010, 04:43:02 pm »
Okay, I checked the doc again, and you're right, there is NO header at the variable's data.  There is only the size field.  All the header data is in the symbol table (and each header there is not a fixed size by the way).
___Axe_Parser___
Today the calculator, tomorrow the world!

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 #643 on: May 25, 2010, 04:46:34 pm »
Really?  How does it change size? O.o  And ok, well, then is there any way to access those?
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 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 #644 on: May 25, 2010, 07:02:01 pm »
Maybe there should be a GetCalc()r command that returns the VAT pointer instead of the data pointer.
"Most people ask, 'What does a thing do?' Hackers ask, 'What can I make it do?'" - Pablos Holman