Author Topic: zStart - an app that runs on ram clears  (Read 333381 times)

0 Members and 1 Guest are viewing this topic.

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: zStart - an app that runs on ram clears
« Reply #90 on: April 10, 2011, 06:00:04 pm »
Would storing the active font in the app itself speed things up any or fix any bugs?
Would editing of the small font be possible? Of tokens?

No, storing the font wouldn't make it faster. My hooks are super optimized for speed because you sure wouldn't want a .1 sec delay per character when displaying the whole screen. Here's what I do:
-Hook get's called, if the OS is asking for the small font, it quits
-It looks at the very end of the extra ram page in a certain spot for $69, if it's there, skip to THERE
-It finds the font file and stores it's location at the end of the extra ram page along with $69
THERE:
-It takes the file location from the extra ram page and adds the offset for the specific character
-It streams the bitmap out of flash and give the OS a pointer to where it put it
-RET

Editing the small font would be possible, but I don't think it's really practical. If you change the length of the characters, you're bound to mess up menus like MODE.
Editing tokens is possible, but what would you really want to change? It also wouldn't be very size practical.


lol at @squidgetx


I was thinking of an option to disable all hooks. It wouldn't be hard to do at all. But until I do that, opening the press to test menu work just fine.
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 squidgetx

  • Food.
  • CoT Emeritus
  • LV10 31337 u53r (Next: 2000)
  • *
  • Posts: 1881
  • Rating: +503/-17
  • rawr.
    • View Profile
Re: zStart - an app that runs on ram clears
« Reply #91 on: April 10, 2011, 06:03:55 pm »
Wait, am I wrong lol? Is it actually be possible to somehow store the font into the app?

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: zStart - an app that runs on ram clears
« Reply #92 on: April 10, 2011, 06:05:38 pm »
No, you are totally right. If I put it inside the app, it would take about 10 seconds and corrupt it's signature. Other assembly programmers would look down on me in shame.

That's why TI invented appVars :D
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 Freyaday

  • The One And Only Serial Time Killing Catboy-Capoeirista-Ballerino
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1970
  • Rating: +128/-15
  • I put on my robe and pixel hat...
    • View Profile
Re: zStart - an app that runs on ram clears
« Reply #93 on: April 10, 2011, 06:54:36 pm »
Aww, man! Guess that's why they invented [NV]RAM, huh :P .
Would it be possible to have the hook return the normal small font for system menus, or only work when called from within a program?
In other news, Frey continues kicking unprecedented levels of ass.
Proud member of LF#N--Lolis For #9678B6 Names


I'm a performer at heart; I stole it last week.
My Artwork!

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: zStart - an app that runs on ram clears
« Reply #94 on: April 10, 2011, 07:10:31 pm »
Aww, man! Guess that's why they invented [NV]RAM, huh :P .
Would it be possible to have the hook return the normal small font for system menus, or only work when called from within a program?

Small font for system menus would require some serious Menu Hook hacking. Almost to the point where you would want to hack the OS. Displaying the small font and the large font are two entirely different bcalls because the small one is variable width. You would also have to change the way the menus scroll and add extra options at the bottom.

For only working in a program, do you mean a specific program or just programs in general?
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 Freyaday

  • The One And Only Serial Time Killing Catboy-Capoeirista-Ballerino
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1970
  • Rating: +128/-15
  • I put on my robe and pixel hat...
    • View Profile
Re: zStart - an app that runs on ram clears
« Reply #95 on: April 10, 2011, 07:19:55 pm »
Programs in general, including ASM ones.
In other news, Frey continues kicking unprecedented levels of ass.
Proud member of LF#N--Lolis For #9678B6 Names


I'm a performer at heart; I stole it last week.
My Artwork!

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: zStart - an app that runs on ram clears
« Reply #96 on: April 10, 2011, 07:22:23 pm »
Hmmm... I suppose it's possible. (CxCurApp) would be kExtApp if an app was running, although I'm not exactly sure how to tell if a ram program is running.
But would this really be useful?
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 DrDnar

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 546
  • Rating: +97/-1
    • View Profile
Re: zStart - an app that runs on ram clears
« Reply #97 on: April 10, 2011, 07:26:12 pm »
Request: Safe ram clear.
You would have an option to Archive all unarchived:
*Programs
*Variables
*Appvars
*Etc.

After that, it would clear you ram and Unarchive the things that were just archived. [/ridiculous but awesome idea]
2nd > Mem > Group > New Group > enter name > All+

There's an app that lets you make macros if you want it fast.
« Last Edit: April 10, 2011, 07:27:05 pm by DrDnar »
"No tools will make a man a skilled workman, or master of defense, nor be of any use to him who has not learned how to handle them, and has never bestowed any attention upon them. . . . Yes, [] the tools which would teach men their own use would be beyond price."—Plato's The Republic, circa 380 BC

Offline Darl181

  • «Yo buddy, you still alive?»
  • CoT Emeritus
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3408
  • Rating: +305/-13
  • VGhlIEdhbWU=
    • View Profile
    • darl181.webuda.com
Re: zStart - an app that runs on ram clears
« Reply #98 on: April 10, 2011, 07:30:01 pm »
That's an idea...instead of it being a key combo to do the special ram clear, it could be an option in the ram reset menu.

btw the update fixed the problems ;D
« Last Edit: April 10, 2011, 07:33:51 pm by Darl181 »
Vy'o'us pleorsdti thl'e gjaemue

Offline Freyaday

  • The One And Only Serial Time Killing Catboy-Capoeirista-Ballerino
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1970
  • Rating: +128/-15
  • I put on my robe and pixel hat...
    • View Profile
Re: zStart - an app that runs on ram clears
« Reply #99 on: April 10, 2011, 07:34:38 pm »
Changing the small font would have the exact same purpose as changing the large font, Ditto tokens.
In other news, Frey continues kicking unprecedented levels of ass.
Proud member of LF#N--Lolis For #9678B6 Names


I'm a performer at heart; I stole it last week.
My Artwork!

Offline DrDnar

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 546
  • Rating: +97/-1
    • View Profile
Re: zStart - an app that runs on ram clears
« Reply #100 on: April 10, 2011, 07:47:53 pm »
I like the idea of being able to rename tokens. Axe re-purposes a lot of tokens, and so do Axioms.
"No tools will make a man a skilled workman, or master of defense, nor be of any use to him who has not learned how to handle them, and has never bestowed any attention upon them. . . . Yes, [] the tools which would teach men their own use would be beyond price."—Plato's The Republic, circa 380 BC

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: zStart - an app that runs on ram clears
« Reply #101 on: April 10, 2011, 08:37:47 pm »
I like the idea of being able to rename tokens. Axe re-purposes a lot of tokens, and so do Axioms.

Oh, I thought axe already renamed them. In that case I'll have to make a token editor.


Some progress:
-I've moved the restore defaults to ON+CLEAR because ON+ENTER will be compile Axe
-ON+VARS archives all programs, this is the first step towards the safe ram clear

I'm not going to have it archive appVars because a lot of appVars aren't meant to be archved.
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 Happybobjr

  • James Oldiges
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2325
  • Rating: +128/-20
  • Howdy :)
    • View Profile
Re: zStart - an app that runs on ram clears
« Reply #102 on: April 10, 2011, 08:50:32 pm »
* Happybobjr hugs thepenguin77

Does it leave an appvar or something to tell it what programs have been archived in this method?
School: East Central High School
 
Axe: 1.0.0
TI-84 +SE  ||| OS: 2.53 MP (patched) ||| Version: "M"
TI-Nspire    |||  Lent out, and never returned
____________________________________________________________

Offline DrDnar

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 546
  • Rating: +97/-1
    • View Profile
Re: zStart - an app that runs on ram clears
« Reply #103 on: April 10, 2011, 09:17:15 pm »
Oh, wow, Axe actually does rename them, but only from within the Program editor.
"No tools will make a man a skilled workman, or master of defense, nor be of any use to him who has not learned how to handle them, and has never bestowed any attention upon them. . . . Yes, [] the tools which would teach men their own use would be beyond price."—Plato's The Republic, circa 380 BC

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: zStart - an app that runs on ram clears
« Reply #104 on: April 10, 2011, 10:18:46 pm »
* Happybobjr hugs thepenguin77

Does it leave an appvar or something to tell it what programs have been archived in this method?

That's actually a really good idea. But no. Instead, I make a list on the extra ram page which doesn't get touched by the Ram Clear. And I'm going to mark the list as valid by putting a "zStart", $69, $13, $37 in front of it because I'm literally going to crash the calc. You wouldn't want a regular ram clear to trigger the unarchive loop. D:
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