Author Topic: Create Groups  (Read 28810 times)

0 Members and 1 Guest are viewing this topic.

Offline ACagliano

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 919
  • Rating: +32/-2
    • View Profile
    • ClrHome Productions
Create Groups
« on: July 05, 2010, 05:50:57 pm »
Hey guys. I am looking for an assembly subroutine (in hex, please) that does this:

You have a bunch of program names stored into Str4. The asm program creates a group consisting of those programs listed in Str4. Is this possible?

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: Create Groups
« Reply #1 on: July 05, 2010, 08:35:13 pm »
I was about to jump right on this, but then I realized, I have no idea how to make groups.

I've done quite a bit of searching and there is almost no information on this, the best thing I can find is JForceGroup. I believe all this does is bring up the group menu. I think I can manually select the groups data wise, but it would still probably need a rawKey hook to press right and then enter.

So it depends what you are using this for. I would imagine that the group screen will pop up for a second. I also think this might be quite a program to type in with hex.

Edit:
   Looks like you'd have to use a getCSC hook because you would also have to regain control after the group completes.
« Last Edit: July 05, 2010, 08:40:50 pm by thepenguin77 »
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 ACagliano

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 919
  • Rating: +32/-2
    • View Profile
    • ClrHome Productions
Re: Create Groups
« Reply #2 on: July 06, 2010, 05:57:18 am »
Well, it seems complicated. And, to increase the "awesomeness" associated with its release, I'd rather not say at the moment exactly what it's purpose would be (at least not on forums or IRC). Just know that the grouping itself needs to be fully automated, with its name defined in one String and its contents defined by another String.


Question about CelticIII: Let's say I have a program in RAM called prgmTEST. Can I then create an appvar TEST, and them not interfere with each other, so long as one stays an appvar and the other a program, or should the name be changed?
« Last Edit: July 06, 2010, 06:37:50 am by ACagliano »

_player1537

  • Guest
Re: Create Groups
« Reply #3 on: July 06, 2010, 11:10:03 am »
affirmitive, they will not mess with each other, in the ram each one has a sort of "header" that says what type it is, and the name.  Appvar's header's start with one number, programs start with a 5, and protected programs start with a 6. 

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: Create Groups
« Reply #4 on: July 06, 2010, 11:26:08 am »
The grouping would be fully automated, but it would not be hidden. Unless you turn the screen off, the user will see the group menu appear, then watch the calculator working on grouping, and then saying complete.

I'll start making it, if what I just said is fine, then you'll be able to group.

One last thing, will this be a program, or will this be an in-line code section.

Edit:
     What string are you putting the name in?
« Last Edit: July 06, 2010, 11:32:46 am by thepenguin77 »
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 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: Create Groups
« Reply #5 on: July 06, 2010, 11:44:39 am »
You have a bunch of program names stored into Str4. The asm program creates a group consisting of those programs listed in Str4. Is this possible?
Str4 :)

This sounds pretty complicated.  Good luck! ;D

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: Create Groups
« Reply #6 on: July 06, 2010, 11:47:11 am »
The name of the group variable.

Does anyone know how to make the calculator normal again when returning from a hook? Like resume operation of a basic program?
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

_player1537

  • Guest
Re: Create Groups
« Reply #7 on: July 06, 2010, 11:52:05 am »
I could have sworn that there was a bcall to do this...

Regardless, after you use the hook its needed number of times, use the disable hook bcall to turn it off (I like hooks :P)

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: Create Groups
« Reply #8 on: July 06, 2010, 12:00:13 pm »
Ya, it looks like it has to press 3, right, enter, then return.

The last time I tried to normalize from a hook, I called an os specific call, made a temp program, executed it and called my program. Hopefully there is an easier way.
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

_player1537

  • Guest
Re: Create Groups
« Reply #9 on: July 06, 2010, 12:01:54 pm »
I write my hooks for the ram ^^, I'll have to look for the template I used, one sec

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: Create Groups
« Reply #10 on: July 06, 2010, 12:28:58 pm »
Here's how the syntax is coming out.

String 3 is the group name.
String 4 is the programs's names.

The program names are 9 characters long where, first byte is o = unprotected or p = protected, then the name followed by spaces to make it 8 bytes.

So for example ztris and ztetris would be, pZTRIS___pZTETRIS__
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 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: Create Groups
« Reply #11 on: July 06, 2010, 12:39:47 pm »
To whoever is making this, good luck on the project :)

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: Create Groups
« Reply #12 on: July 06, 2010, 01:50:13 pm »
lol, this is the most hacked up thing I've ever seen.

It will be complete as soon as some one figures out how to normalize from a hook.

Edit:
    + is unprotected - is protected. Turns out that o and p are actually 2 byte tokens
« Last Edit: July 06, 2010, 01:51:40 pm by thepenguin77 »
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 nemo

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1203
  • Rating: +95/-11
    • View Profile
Re: Create Groups
« Reply #13 on: July 06, 2010, 01:59:50 pm »
lol that's so cool. nice job penguin77! and yeah, i think that all lowercase letters are 2 byte tokens.


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: Create Groups
« Reply #14 on: July 06, 2010, 02:26:11 pm »
Ok, new idea, maybe I can make a group variable in ram and then archive it. That would be much simpler, I just have to figure out how groups work. It is also so anti-TI to have a group in ram.
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