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

0 Members and 3 Guests are viewing this topic.

Offline DrDnar

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 546
  • Rating: +97/-1
    • View Profile
Re: zStart - an app that runs on ram clears
« Reply #285 on: June 22, 2011, 12:19:35 am »
Glancing at this, I have to ask: Is the name input routine overwriting the first byte of Str1/Str3? That byte must be 6 for the converted font to show up in zStart. The conversion worked for me when I manually entered the name. I'll check the source for typos, too.

So, here it is, from Source Coder. I don't see any differences, though.
Code: [Select]
:.AA
:" COURIERN"→Str1
:6→{Str1}
:[BB6DC96F6D6E6963616C63]→Str2
:" COURIERM"→Str3
:6→{Str3}
:"FONT"→Str4
:Disp "Working...",i
:GetCalc(Str1,Y1)→A
:!If A
: Disp "Var not found.",i
: Return
:End
:For(A,0,10)
: {A+Str2}→B
: {Y1+A}→C
: If B≠C
:  Disp "Header error.",i
:  Return
: End
:End
:.CREATE VAR
:GetCalc(Str3,2052)→X
:!If X
: Disp "Cannot create.",i
: Return
:End
:.MAKE HEADER
:conj(Str4,X,4)
:X+4→X
:Disp "Converting...",i
:For(C,0,255)
: C*7+11→G
: C*8+X→H
: For(D,0,6)
:  {Y1+G}→E
:  E→{H}
:  G++
:  H++
: End
: 5→{H}
:End
:Disp "Archiving...",i
:ArchiveStr3
:Disp "Done!",i
« Last Edit: June 22, 2011, 12:28:24 am 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 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: zStart - an app that runs on ram clears
« Reply #286 on: June 22, 2011, 04:31:08 pm »
When I tried it I always got a header error. :-\

Glancing at this, I have to ask: Is the name input routine overwriting the first byte of Str1/Str3? That byte must be 6 for the converted font to show up in zStart. The conversion worked for me when I manually entered the name. I'll check the source for typos, too.
I made sure to keep both bytes as 6.

Offline DrDnar

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 546
  • Rating: +97/-1
    • View Profile
Re: zStart - an app that runs on ram clears
« Reply #287 on: June 22, 2011, 04:33:59 pm »
Is that error with my version or yours? It worked fine with that first sample font from TI Calc. I think you need to pass Str1+1 instead of Str1 to the name input routine.
« Last Edit: June 22, 2011, 04:36:44 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 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: zStart - an app that runs on ram clears
« Reply #288 on: June 22, 2011, 05:00:34 pm »
Interesting.  I just tried my code again without changing anything and it worked. ???

Here's my executable and source:

Edit: And now it's back to doing it again. :(



Edit: As another request, thepenguin, can we please be able to Rcl programs from Archive?  :D  Thanks. :)
« Last Edit: June 23, 2011, 10:47:57 am by ztrumpet »

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 #289 on: June 23, 2011, 08:13:44 pm »
This is great. I haven't managed to test out the new update though, but I *did* figure out what was causing my ERR:INVALID problem. However, sometimes after using the compile shortcut, I just get a RAM clear..... any ideas? I'll try to repro it for you to ascertain some of the circumstances....but I think it might have to do with the run-on-ram-clear property not working correctly. (It won't switch to CLASSIC after ram clear either even though i have it set to CLASSIC in the defaults menu...2.53MP)

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: zStart - an app that runs on ram clears
« Reply #290 on: June 23, 2011, 11:47:13 pm »
Another request like:
I also have another feature request that I forgot about before:
Can you make it so when a letter is pressed in the Memory Management/Delete menu that you jump to the first program/app/list/appvar with that letter like in the Prgm/Apps/Stat menu?  I think this would be incredibly helpful for deleting or seeing the size of items that start with a letter far down the alphabet.  Note that if you're in the "All" menu there that nothing should be done, as it includes every type of file and is not suitable for jumping around letter by letter.
Can you add this to the [2nd] [Link] menu as well?  I hate having to wait a minute before I can scroll down to Z to transfer certain programs, like my quadratic formula one named "ZQUADFRM." ;)  Thanks. :)

Offline DrDnar

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 546
  • Rating: +97/-1
    • View Profile
Re: zStart - an app that runs on ram clears
« Reply #291 on: June 24, 2011, 12:09:02 am »
That's a difficult request. (At the very least, the internal workings of those menus are not documented.) Though it would be a nice feature.
"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 Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: zStart - an app that runs on ram clears
« Reply #292 on: June 24, 2011, 07:55:35 am »
Another request like:
I also have another feature request that I forgot about before:
Can you make it so when a letter is pressed in the Memory Management/Delete menu that you jump to the first program/app/list/appvar with that letter like in the Prgm/Apps/Stat menu?  I think this would be incredibly helpful for deleting or seeing the size of items that start with a letter far down the alphabet.  Note that if you're in the "All" menu there that nothing should be done, as it includes every type of file and is not suitable for jumping around letter by letter.
Can you add this to the [2nd] [Link] menu as well?  I hate having to wait a minute before I can scroll down to Z to transfer certain programs, like my quadratic formula one named "ZQUADFRM." ;)  Thanks. :)

Oh I like that, I'd actually like that in every menus, but I guess it's not 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: zStart - an app that runs on ram clears
« Reply #293 on: June 24, 2011, 10:15:04 am »
I haven't said whether it's possible or not, because honestly I don't know. It should be possible.

Here's the process I'll have to go through.
1. Find those menus' cxCurApp values. (This is their ID values)
2. Figure out where they store the current varType.
3. Figure out where they store the current program
4. Figure out how to redraw the menus
5. Figure out how to search alphabetically for stuff
6. Add in special cases for those cxCurApp values in my hook routine
7. Write the hook routine

Now, 1 and 6 are simple. If I'm lucky, 2, 3 and 4 will be the same as the program menus. 5 I know how to do as long as I can do 2. And 7, I think this is like my 30th hook or something, so I've got some experience in the matter.
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 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 #294 on: June 28, 2011, 02:05:57 am »
Feature request, just adding to something current:
On+Vars shortcut in program editor brings up the labels atm.  But it only shows the label names' first two chars.
Like, Lbl END shows up as EN and both Lbl ST and Lbl STC show up as ST.

Might it be possible to make it so label names up to 3 chars show up?
Vy'o'us pleorsdti thl'e gjaemue

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 #295 on: June 28, 2011, 08:53:19 pm »
Bet you can't guess what I added.

Update!!!:
  • Changed "Screen" menu to "Hardware"
  • Added in option to allow code execution in when PC >C000. (Actually, all of ram, anywhere)


The only downfall to allowing execution everywhere is that the calculator will never really "crash." Instead, it will just bounce around until it goes into an endless loop or goes to 0000h. I'm not sure what kind of effect this is going to have, so we'll have to see.




Sorry Darl, SirCmpwn told me that you could only have 2 letter labels. If 3 letter labels are real, that's an easy fix.

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 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 #296 on: June 28, 2011, 08:55:10 pm »
Sorry Darl, SirCmpwn told me that you could only have 2 letter labels. If 3 letter labels are real, that's an easy fix.
They exist in Axe source code ;)
Vy'o'us pleorsdti thl'e gjaemue

Offline DrDnar

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 546
  • Rating: +97/-1
    • View Profile
Re: zStart - an app that runs on ram clears
« Reply #297 on: June 28, 2011, 08:55:14 pm »
They're real. The limit is actually 3 bytes, not tokens.

Dang, ninja'd by four seconds.
« Last Edit: June 28, 2011, 08:55:47 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 Camdenmil

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 121
  • Rating: +4/-0
    • View Profile
Re: zStart - an app that runs on ram clears
« Reply #298 on: June 28, 2011, 08:57:00 pm »
Axe allows for 3 letter labels. If I let PC>C000h would a battery pull still work?
It is bad luck to be superstitious.

Offline DrDnar

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 546
  • Rating: +97/-1
    • View Profile
Re: zStart - an app that runs on ram clears
« Reply #299 on: June 28, 2011, 08:57:25 pm »
Yes.
"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