• Axe Parser 5 1
Currently:  

Author Topic: Axe Parser  (Read 546353 times)

0 Members and 4 Guests are viewing this topic.

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 #1140 on: August 24, 2010, 05:18:00 pm »
Yes, that's easy.  Put a Fix 7 towards the beginning of your program.  Remember to put a Fix 6 towards the end! :)
(Fix 0 - 9 are found next to Float in the Mode menu.) ;D

Offline guy6020665

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 481
  • Rating: +7/-1
    • View Profile
Re: Axe Parser
« Reply #1141 on: August 24, 2010, 05:22:48 pm »
Yes, that's easy.  Put a Fix 7 towards the beginning of your program.  Remember to put a Fix 6 towards the end! :)
(Fix 0 - 9 are found next to Float in the Mode menu.) ;D

Thanks ztrumpet! Got it working now! Almost no waiting for screen to load!

Offline Hot_Dog

  • CoT Emeritus
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3006
  • Rating: +445/-10
    • View Profile
Re: Axe Parser
« Reply #1142 on: August 24, 2010, 06:29:25 pm »
I saw the new version of Axe!  Nice job, Quigibo!

Offline Hot_Dog

  • CoT Emeritus
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3006
  • Rating: +445/-10
    • View Profile
Re: Axe Parser
« Reply #1143 on: August 25, 2010, 09:08:24 pm »
Sorry for the double post.  Are you really adding Mode 7?  If I wasn't stopping programming after S.A.D. (though I'll most likely still be on the site), I would serious use Axe for that.

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 #1144 on: August 26, 2010, 12:46:50 pm »
I'm not sure if he plans this for the next versions. I think it was gonna be an Axiom, though.

Offline LordConiupiter

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 339
  • Rating: +3/-0
  • Just one of the thousands of Axe-fans...
    • View Profile
Re: Axe Parser
« Reply #1145 on: August 31, 2010, 02:02:12 pm »
why does Axe need so much space when running a program? I get many times an ERR:OUT OF MEM, while I just have left a little less than the size of my program. this is really very annoying, you know! is this a problem that can easily be fixed? or is it something that is needed for Axe? please help! I'm running out of mem this way! I can't develop any further right now! and how does the read from archive function work exactly? I don't understand the Commands documentation with GetCalc(PTR,FILE) or something like that...
« Last Edit: August 31, 2010, 02:03:41 pm by LordConiupiter »
everytime that I was down, you would always come around, and get my feedback on the ground. (modified part from 'Seasons in the sun')

No matter how many errors are bothering you, always try to stay rel-Axe!

The HoMM project will be resumed as soon Axe 1.0.0 will be released!
Projects:
Code: [Select]
HoMM:   [==--------]    Project 'resumed': I'm suffering overwhelming new ideas being popped up in my dreams :P
tiDE:   [----------]    Explored and understood the main part of the code: just started writing a Tokenizer.



password of the week: uvanapererubupa (Any pronunciation is the right one ;) )   :D click me, and you'll be raided :D

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 #1146 on: August 31, 2010, 02:44:14 pm »
Wait, how large is the program you are writing?  My source is about 8000 bytes and it compiles to over 10000 bytes, and i have no problem.  How much free ram do you have left?

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 #1147 on: August 31, 2010, 04:13:29 pm »
ALternatively, you can make your game run through Ion or Doors CS. MirageOS can work too, but I think you can't use interrupts nor L2 in it.

Doing so lets you run Asm() programs with like 100 bytes of RAM left.

Offline LordConiupiter

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 339
  • Rating: +3/-0
  • Just one of the thousands of Axe-fans...
    • View Profile
Re: Axe Parser
« Reply #1148 on: August 31, 2010, 06:03:08 pm »
yes, in DCS it's working. my source is about 5000 bytes, and my executable is 6876 bytes, but I'm also using data separatly in Appvars, which are created by a setup Application I wrote in Axe. all with all I have only 6049 bytes left of RAM memory. but DCS handles it, but is a little bit more time-consuming to use, for the startup time...
everytime that I was down, you would always come around, and get my feedback on the ground. (modified part from 'Seasons in the sun')

No matter how many errors are bothering you, always try to stay rel-Axe!

The HoMM project will be resumed as soon Axe 1.0.0 will be released!
Projects:
Code: [Select]
HoMM:   [==--------]    Project 'resumed': I'm suffering overwhelming new ideas being popped up in my dreams :P
tiDE:   [----------]    Explored and understood the main part of the code: just started writing a Tokenizer.



password of the week: uvanapererubupa (Any pronunciation is the right one ;) )   :D click me, and you'll be raided :D

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 #1149 on: August 31, 2010, 07:06:35 pm »
You can run it from the PRGM menu, though, right? (even without the Asm() command)

Offline shmibs

  • しらす丼
  • Administrator
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2132
  • Rating: +281/-3
  • try to be ok, ok?
    • View Profile
    • shmibbles.me
Re: Axe Parser
« Reply #1150 on: August 31, 2010, 10:11:34 pm »
the axe "variables" are stored in the allocated portion just before L1, are they not quigibo(im just guessing here). if i wanted to set them all to the same value with one command instead of [num]->A->B etc could i just use for(A,0,number of vars:0->{L1-[whatever the offset is]+L:end? also, i too am unsure as to how reading from the arch works(probably because i havent read the command lists in a while, but because someone else already brought it up i dont feel guilty about asking XD)

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 #1151 on: September 01, 2010, 12:14:26 am »
The user manual has been updated since I added the file commands, if you haven't looked at it recently, try the newest version.

Here is a little more technical insight.  Normally you use pointers to access something in ram, but only 65536 bytes of memory can actually be read because that's all the combinations you can make with only 2 bytes.  That's fine because there's only 2 ram pages anyway corresponding to 32768 bytes total.  But when it comes to reading from the archive, there is MUCH more data, 2 million bytes on the TI-84+SE.  So in order to compensate for this, you have to use files which you can think of as "extended" pointers.  Each file is 3 bytes corresponding to a page number and pointer within that page.  Because the files obviously have to be handled differently, they can only be used in a few commands: Copy(), {}, and GetCalc() are used most often.  If you need to use the data for other things like sprite drawing, you can use the Copy command to copy it to ram and then refer to it using a normal 2 byte pointer.
___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 #1152 on: September 01, 2010, 01:38:05 am »
Btw the OS is 512 KB, right?

Offline LordConiupiter

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 339
  • Rating: +3/-0
  • Just one of the thousands of Axe-fans...
    • View Profile
Re: Axe Parser
« Reply #1153 on: September 02, 2010, 01:42:25 am »
the axe "variables" are stored in the allocated portion just before L1, are they not quigibo(im just guessing here). if i wanted to set them all to the same value with one command instead of [num]->A->B etc could i just use for(A,0,number of vars:0->{L1-[whatever the offset is]+L:end? also, i too am unsure as to how reading from the arch works(probably because i havent read the command lists in a while, but because someone else already brought it up i dont feel guilty about asking XD)
the easiest way is (imo):
Code: (Axe) [Select]
5->A
Fill(L1-56,56

and @quigibo: are can the current 2 Archive pages also be read? when running an App with data stored into GDB1, I can just do a Pt-On(X,Y,GDB1) on my calc, or is this strange?
« Last Edit: September 02, 2010, 01:46:36 am by LordConiupiter »
everytime that I was down, you would always come around, and get my feedback on the ground. (modified part from 'Seasons in the sun')

No matter how many errors are bothering you, always try to stay rel-Axe!

The HoMM project will be resumed as soon Axe 1.0.0 will be released!
Projects:
Code: [Select]
HoMM:   [==--------]    Project 'resumed': I'm suffering overwhelming new ideas being popped up in my dreams :P
tiDE:   [----------]    Explored and understood the main part of the code: just started writing a Tokenizer.



password of the week: uvanapererubupa (Any pronunciation is the right one ;) )   :D click me, and you'll be raided :D

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 #1154 on: September 02, 2010, 01:52:04 am »
Yeah, you can read them, but technically they are considered rom pages since you can't write to them.
___Axe_Parser___
Today the calculator, tomorrow the world!