• Axe Parser 5 1
Currently:  

Author Topic: Axe Parser  (Read 562064 times)

0 Members and 1 Guest 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 #1665 on: January 21, 2011, 06:55:03 pm »
This is why Quigibo needs to make InsertMem and DelMem functions. Seriously.
« Last Edit: January 21, 2011, 06:55:19 pm by calc84maniac »
"Most people ask, 'What does a thing do?' Hackers ask, 'What can I make it do?'" - Pablos Holman

Offline Runer112

  • Project Author
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2289
  • Rating: +639/-31
    • View Profile
Re: Axe Parser
« Reply #1666 on: January 21, 2011, 06:55:37 pm »
This is why Quigibo needs to make InsertMem and DelMem functions. Seriously.
^++

Offline Binder News

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 785
  • Rating: +46/-3
  • Zombie of Tomorrow
    • View Profile
Re: Axe Parser
« Reply #1667 on: January 21, 2011, 07:02:48 pm »
Yeah, but isn't that kinda hard, as changing the length of an appvar without going through the system routines would screw with other memory. Right?
Spoiler For userbars:







Hacker-in-training!   Z80 Assembly Programmer     Axe Programmer
C++ H4X0R             Java Coder                           I <3 Python!

Perdidisti ludum     Cerebrum non habes

"We are humans first, no matter what."
"Fame is a vapor, popularity an accident, and riches take wings. Only one thing endures, and that is character."
Spoiler For Test Results:





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 #1668 on: January 21, 2011, 07:04:04 pm »
Yeah, but isn't that kinda hard, as changing the length of an appvar without going through the system routines would screw with other memory. Right?
That's the thing, these are system routines. Axe just doesn't have any way to access them without inline asm.
"Most people ask, 'What does a thing do?' Hackers ask, 'What can I make it do?'" - Pablos Holman

Offline nemo

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1203
  • Rating: +95/-11
    • View Profile
Re: Axe Parser
« Reply #1669 on: January 21, 2011, 07:51:28 pm »
Code: [Select]
to insert:
[ADDRESS]   .put the address into HL
Asm(EB)    . ex de, hl
[SIZE]
Asm(EF42F7)

but it doesn't check if there's enough RAM, nor does it update the size of the variable you're updating.. so there are some issues... but it can't be hard to write an axiom for 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 #1670 on: January 21, 2011, 09:35:11 pm »
Yeah insert/deletemem would be nice, IMHO.

Offline squidgetx

  • Food.
  • CoT Emeritus
  • LV10 31337 u53r (Next: 2000)
  • *
  • Posts: 1881
  • Rating: +503/-17
  • rawr.
    • View Profile
Re: Axe Parser
« Reply #1671 on: January 21, 2011, 10:12:28 pm »
Alternatively you can have the original appvar in archive and copy it to another appvar with a different name, archive it, delete the original, make a new one of the new size and same original name, then copy to it from the one in archive. Although nemos way is probably much easier ;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 #1672 on: January 21, 2011, 10:15:53 pm »
Yeah that's what someone said before, but unfortunately this is not convenient if you're running low on RAM.

Offline squidgetx

  • Food.
  • CoT Emeritus
  • LV10 31337 u53r (Next: 2000)
  • *
  • Posts: 1881
  • Rating: +503/-17
  • rawr.
    • View Profile
Re: Axe Parser
« Reply #1673 on: January 21, 2011, 10:19:43 pm »
My way is long and inefficient but works as long as you have enough ram to hold the new sized appvar :P (and that's it... So if you have a 12k appvar and you want to make it 14 k all you need is 14k of ram... Which is the same memory requirement as nemos :P

Offline Binder News

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 785
  • Rating: +46/-3
  • Zombie of Tomorrow
    • View Profile
Re: Axe Parser
« Reply #1674 on: January 21, 2011, 10:22:40 pm »
That's why I suggest using something like L1. It already exists in RAM, and so wouldn't need to be allocated.
Spoiler For userbars:







Hacker-in-training!   Z80 Assembly Programmer     Axe Programmer
C++ H4X0R             Java Coder                           I <3 Python!

Perdidisti ludum     Cerebrum non habes

"We are humans first, no matter what."
"Fame is a vapor, popularity an accident, and riches take wings. Only one thing endures, and that is character."
Spoiler For Test Results:





Offline squidgetx

  • Food.
  • CoT Emeritus
  • LV10 31337 u53r (Next: 2000)
  • *
  • Posts: 1881
  • Rating: +503/-17
  • rawr.
    • View Profile
Re: Axe Parser
« Reply #1675 on: January 21, 2011, 10:25:51 pm »
But unfortunately this is inconvenient if you want to make a new appvar that is larger than 768 bytes...

Also I apologize for any lack of clarity/unintended rudeness... I'm slightly sick :P

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 #1676 on: January 21, 2011, 10:27:46 pm »
Hmm if you delete an archived appvar this large then recreate one, won't that be hard on the flash chip, though?

Offline Binder News

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 785
  • Rating: +46/-3
  • Zombie of Tomorrow
    • View Profile
Re: Axe Parser
« Reply #1677 on: January 21, 2011, 10:31:11 pm »
@DJ: Yea, I think so.

I hope you feel better soon, squidgetx.
Spoiler For userbars:







Hacker-in-training!   Z80 Assembly Programmer     Axe Programmer
C++ H4X0R             Java Coder                           I <3 Python!

Perdidisti ludum     Cerebrum non habes

"We are humans first, no matter what."
"Fame is a vapor, popularity an accident, and riches take wings. Only one thing endures, and that is character."
Spoiler For Test Results:





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 #1678 on: January 22, 2011, 02:24:36 am »
Maybe what we need is an advanced memory handling Axiom?  It could insert and delete memory, and could also handle advanced things like updating the vat, changing the size counters, and maybe even putting the calculator in program edit mode.

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: Axe Parser
« Reply #1679 on: January 22, 2011, 09:53:36 am »
Maybe what we need is an advanced memory handling Axiom?  It could insert and delete memory, and could also handle advanced things like updating the vat, changing the size counters, and maybe even putting the calculator in program edit mode.

I'm already working on that ^^

Insert/DeleteMem, dynamic vars, edit buffers...