Author Topic: Axe Parser  (Read 552581 times)

0 Members and 1 Guest 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 #180 on: March 05, 2010, 08:36:14 pm »
Perhaps Axe-compiled programs, when executed, leave some malevolent artifacts... ?
I was playing around with bytes before this happened.
« Last Edit: March 05, 2010, 08:37:06 pm by ProphetsDementia »
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 #181 on: March 05, 2010, 09:46:40 pm »
I doubt Axe can screw up programs like this. If it did, it's because you messed with the pointer stuff or used inline assembly. As mentionned in the documentation at the bottom, some pointers can cause instability on the calc. I assume bytes stuff can also pose problems if not used properly too.

In any case, always backup your stuff before testing anything, though. You must never take any chance, especially considering xLIB and Axe are not finished and that there can be errors on both sides (xlib/axe or your code)

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 #182 on: March 06, 2010, 09:48:09 am »
Okay then. Found my problem.
It's good now.

Question about Axe, though.
Say you wrote the following code:

Code: [Select]
:15->{A+1}
:Disp {A+1}>Dec

How big do those defined bytes get?
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 Eeems

  • Mr. Dictator
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6268
  • Rating: +318/-36
  • little oof
    • View Profile
    • Eeems
Re: Axe Parser
« Reply #183 on: March 06, 2010, 11:31:11 am »
Well...ummm...where is A x.x
that's pretty dangerious actually, because whatever te value in A is, that's where you are playing around with. I would recommend using L1/2/3 or maybe defining the bytes in the program with Str1/2/3 etc.
If you define them in the program then it is only as big as you made it. Otherwise if you use L1/2/3 then you would have to look in the documentation to see.
/e

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 #184 on: March 06, 2010, 06:38:26 pm »
Yeah thats incredibly dangerous, I'm surprised you didn't clear your ram that way O.O

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 #185 on: March 06, 2010, 06:46:49 pm »
How do you know he didn't do this first:
:L1->A

I use that trick all the time when I have a lot of math like:
:Y*8+X+L1->A

Because that way it can become:
:{A}->B
:15->{A}

Which saves memory and speed if you call it a lot.
___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 #186 on: March 06, 2010, 06:50:22 pm »
True, so i guess the question would be Where it A?

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 #187 on: March 07, 2010, 07:46:28 am »
I directly assigned that value to {A+1}.
So, that was bad...?

EDIT: Anyone else wake up and immediately log on to Omnimaga, eagerly anticipating the new Axe release every Sunday?
« Last Edit: March 07, 2010, 10:59:12 am by ProphetsDementia »
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 Eeems

  • Mr. Dictator
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6268
  • Rating: +318/-36
  • little oof
    • View Profile
    • Eeems
Re: Axe Parser
« Reply #188 on: March 07, 2010, 12:00:20 pm »
Yeah that could be bad if A wasn't set to a safe area then who knows where you put that value x.x

I did too :p
/e

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 #189 on: March 07, 2010, 12:46:12 pm »
OH! Also, one thing:

When Axe will support Mirage and Ion (and DCS since MOS/Ion progs shows in it), it will be important to be careful to not use RAM areas in your games that are used in MirageOs. I remember Zelda: Dark Link Quest used an ASM utility that did and when exiting Mirage (back when it was in beta, the game showed in Mirage) it crashed. I heard xLIB sometimes had issues, too, with this.

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 #190 on: March 07, 2010, 12:56:20 pm »
Seconded.




LOL THIS IS NOT SPAM.
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 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 #191 on: March 07, 2010, 02:06:04 pm »
OH! Also, one thing:

When Axe will support Mirage and Ion (and DCS since MOS/Ion progs shows in it), it will be important to be careful to not use RAM areas in your games that are used in MirageOs. I remember Zelda: Dark Link Quest used an ASM utility that did and when exiting Mirage (back when it was in beta, the game showed in Mirage) it crashed. I heard xLIB sometimes had issues, too, with this.
Yeah, it's too bad that Mirage relies on so much.  :(
You could make your program show up in mirage by putting this on the first line:
Asm(BB6DC930)
However, it may crash, so I'm not trying it. :)

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 #192 on: March 07, 2010, 03:05:30 pm »
This is getting a bit offtopic, but is it possible to have a MOS program not have any icon? If so, would it save much space? I ask since sometimes, every byte counts :P

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 #193 on: March 07, 2010, 04:39:33 pm »
Yes, it is.  The Hex code I gave earlier is for ion programs, and those don't even have a picture with them. :)
I think that's the smallest size you could have for a Mirage program.  It's only 4 bytes bigger than a non-ion program after it's compiled. (I think)

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 #194 on: March 07, 2010, 04:47:08 pm »
It should be Asm(C930)  The assembly header is automatically added by the parser.
« Last Edit: March 07, 2010, 04:47:30 pm by Quigibo »
___Axe_Parser___
Today the calculator, tomorrow the world!