Author Topic: Can Axe mess with Group files?  (Read 4394 times)

0 Members and 1 Guest are viewing this topic.

Offline Yeong

  • Not a bridge
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3739
  • Rating: +278/-12
  • Survivor of Apocalypse
    • View Profile
Can Axe mess with Group files?
« on: September 12, 2011, 05:05:46 pm »
can axe ungroup the group by itself?
if it can, how do I do it?
Sig wipe!

Offline Runer112

  • Project Author
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2289
  • Rating: +639/-31
    • View Profile
Re: Can Axe mess with Group files?
« Reply #1 on: September 12, 2011, 05:06:41 pm »
Nope. And I'd personally stay away from group files as much as possible, they're made of pure evil.

Offline Yeong

  • Not a bridge
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3739
  • Rating: +278/-12
  • Survivor of Apocalypse
    • View Profile
Re: Can Axe mess with Group files?
« Reply #2 on: September 12, 2011, 05:08:03 pm »
aw. I was hoping that I could make a installer that takes the lots of appvars from groups and archive those.
Sig wipe!

Ashbad

  • Guest
Re: Can Axe mess with Group files?
« Reply #3 on: September 12, 2011, 05:09:38 pm »
aw. I was hoping that I could make a installer that takes the lots of appvars from groups and archive those.

Even better, perhaps play with compression algorithms and make your own grouping system based on Appvars solely?  It'd be easier to work with and could be rather custom and cool.  TI groups *are* pure evil.
« Last Edit: September 12, 2011, 05:10:04 pm by Ashbad »

Offline thepenguin77

  • z80 Assembly Master
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1594
  • Rating: +823/-5
  • The game in my avatar is bit.ly/p0zPWu
    • View Profile
Re: Can Axe mess with Group files?
« Reply #4 on: September 12, 2011, 05:12:55 pm »
Ungrouping stuff is really easy. The group is just a whole bunch of programs stored back to back.

However, creating a group is messy. You have to make a group in ram then call bcall(_archiveVar), which is the only bcall out of them all that can corrupt your flash. And most likely, you'll corrupt your archive several times during development.

So I say, it's possible, but you should definitely do it in assembly instead.
zStart v1.3.013 9-20-2013 
All of my utilities
TI-Connect Help
You can build a statue out of either 1'x1' blocks or 12'x12' blocks. The 1'x1' blocks will take a lot longer, but the final product is worth it.
       -Runer112

Offline Yeong

  • Not a bridge
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3739
  • Rating: +278/-12
  • Survivor of Apocalypse
    • View Profile
Re: Can Axe mess with Group files?
« Reply #5 on: September 12, 2011, 05:16:19 pm »
oh, that was not what I was asking for XP
I probably had to mention that the group will only contain appvars
so basically my question was: Is it possible to create program with axe that ungroup the group files for me without having to go to memory menu.
Sig wipe!

Ashbad

  • Guest
Re: Can Axe mess with Group files?
« Reply #6 on: September 12, 2011, 05:20:12 pm »
oh, that was not what I was asking for XP
I probably had to mention that the group will only contain appvars
so basically my question was: Is it possible to create program with axe that ungroup the group files for me without having to go to memory menu.

Well, deriving from TP77's knowledge, yes, but have fun with a ton of inline assembly.

Offline Yeong

  • Not a bridge
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3739
  • Rating: +278/-12
  • Survivor of Apocalypse
    • View Profile
Re: Can Axe mess with Group files?
« Reply #7 on: September 12, 2011, 05:21:04 pm »
ASM? :o
*Yeong gives up :P
then I guess I'll make a readme file of how to install it XP
« Last Edit: September 12, 2011, 05:21:51 pm by yeongJIN_COOL »
Sig wipe!

Ashbad

  • Guest
Re: Can Axe mess with Group files?
« Reply #8 on: September 12, 2011, 05:23:56 pm »
ASM? :o
*Yeong gives up :P
then I guess I'll make a readme file of how to install it XP

Again, why not just condense the smaller appvars into larger ones and chunk those apart?

Offline Yeong

  • Not a bridge
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3739
  • Rating: +278/-12
  • Survivor of Apocalypse
    • View Profile
Re: Can Axe mess with Group files?
« Reply #9 on: September 12, 2011, 05:26:38 pm »
issa pic files (All 780 bytes and I won't know how to use it if I merged it)
Sig wipe!

Offline thepenguin77

  • z80 Assembly Master
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1594
  • Rating: +823/-5
  • The game in my avatar is bit.ly/p0zPWu
    • View Profile
Re: Can Axe mess with Group files?
« Reply #10 on: September 12, 2011, 05:29:08 pm »
That should be possible. Here's how the groups are stored:

Code: [Select]
{standard flash header}
bytes descriptions
1 [Valid flag == FC]
2 [size of entire flash variable]

{standard program header}
1 [group == 17h]
5 [garbage (for you)]
1 [size of program name]
1-8 [program name]
2 [size of group data]

And now the fun part. You have a whole bunch of programs right after each other:

Code: [Select]
{standard program header}
1 [type, 5 = prog, 6 = prot prog, = 15h = appvar]
5 [garbage again]
1 [size of program name]
1-8 [program name]
2 [program size]
0-big [program data]

So, what you'd do is make your way though the group header, figure out what type the first program is, make a program of that type in ram, then copy the data into it. Just repeat that until you reach the end of the group.

That simple ;)
zStart v1.3.013 9-20-2013 
All of my utilities
TI-Connect Help
You can build a statue out of either 1'x1' blocks or 12'x12' blocks. The 1'x1' blocks will take a lot longer, but the final product is worth it.
       -Runer112