• zStart - an app that runs on ram clears 5 1
Currently:  

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

0 Members and 4 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 #270 on: June 17, 2011, 12:11:56 am »
Is there a converter between zStart fonts and Omnicalc fonts? It looks like Omnicalc uses a different header and stores 7 bytes per character, whereas zStart stores 8 bytes per character.
"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 TIfanx1999

  • ಠ_ಠ ( ͡° ͜ʖ ͡°)
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 6173
  • Rating: +191/-9
    • View Profile
Re: zStart - an app that runs on ram clears
« Reply #271 on: June 17, 2011, 02:47:50 am »

Edit: Since I forgot to mention how much I love the new update in this topic, I will now:
I love this update so much that I switched back from DCS7 to Mirage just so I don't have to deal with the conflicting hooks.  And that's saying something. ;D
Thanks for the update, thepenguin.  It's awesome.

You might want to consider keeping DoorsCS7. I'm sure zStart-Doors compatibility is somewhere on thepenguin's to-do list, and without DoorsCS7, you lose the benefits of CALCnet and gCn.
While that is certainly true, I'm not sure most users use either of those things all that often. Mirage is also quite a lot smaller than Doors as well.

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 #272 on: June 19, 2011, 03:19:00 pm »
It seems to me like either custom fonts or picture on start-up somehow nulls omnicalc's procedure to save the ram.  It didn't overwrite it, but apparently it just prevented it from saving properly...
Vy'o'us pleorsdti thl'e gjaemue

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 #273 on: June 19, 2011, 11:19:43 pm »
Thepenguin, the last update is amazing!  Here are my thoughts:
1. Change the Copy key from [On] + [Prgm] to [On] + [negative] for two reasons: Allow it to work with some of DCS7 and to make it a lot faster to copy something and paste it really fast, since the keys are right next to each other.
2. Add something like DCS7's homescreen hook to intercept the prgm token.  If it's the first character on a line then you can parse that yourself instead of letting the OS do it.  This could allow you to make a temporary copy of that in RAM so you could run it from archive or even distinguish if from a TI Basic or Asm program.
3. Finish Solver++ :D
4. Can you please release the Copy/Paste hook as a stand alone program?  I'd love to have it on my 83+SE, which I don't believe zStart is compatible with.
4.5. What about OS 1.19 and 83+/83+SE compatibility?
5. zStart is awesome!  Thanks. ;D
« Last Edit: June 19, 2011, 11:33:12 pm by ztrumpet »

Offline Camdenmil

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 121
  • Rating: +4/-0
    • View Profile
Re: zStart - an app that runs on ram clears
« Reply #274 on: June 19, 2011, 11:24:14 pm »
I run zStart on my 84+SE with only 1 extra page.
It is bad luck to be superstitious.

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 #275 on: June 19, 2011, 11:26:51 pm »
I run zStart on my 84+SE with only 1 extra page.
Yup, same here.  I have no problems with zStart itself. :)

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 #276 on: June 19, 2011, 11:30:43 pm »
Thepenguin, the last update is amazing!  Here are my thoughts:
1. Change the Copy key from [On] + [Prgm] to [On] + [negative] for two reasons: Allow it to work with some of DCS7 and to make it a lot faster to copy something and paste it really fast, since the keys are right next to each other.

That does make it a lot easier to copy and paste, but it poses a problem. The negative key actually does something. Now, with zStart installed, no problem. But if for some reason the hook isn't active, pressing negative is going to start overwriting your program. I originally had the Lbl list as ON + [0 ], but after filling several lines with 0's, I moved it to Vars.

Quote
2. Add something like DCS7's homescreen hook to intercept the prgm token.  If it's the first character on a line then you can parse that yourself instead of letting the OS do it.  This could allow you to make a temporary copy of that in RAM so you could run it from archive or even distinguish if from a TI Basic or Asm program.

Yes, I need to do that. It will also convince me to make my other hooks more basic program friendly.

Quote
3. Finish Solver++ :D

Haha, no.

Quote
4. Can you please release the Copy/Paste hook as a stand alone program?  I'd love to have it on my 84+SE, which I don't believe zStart is compatible with.

What? Why on earth do people think this doesn't run on 84+SE's? The 84+BE and 84+SE are essentially the same calculator. In fact, I use a 84+SE. And since it does run on 84+SE's, I don't think I need to make the copy and paste standalone.

Quote
4.5. What about OS 1.19 and 83+/83+SE compatibility?

Eventually I will write a 1.19 patch. In fact, with my most recent update to how I do flash, that shouldn't be very hard. But it's not going to work on the 83+, I would have to rewrite a lot of code and in the end, quite a few things aren't possible.

Quote
5. zStart is awesome!  Thanks. ;D

That was my goal.
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: zStart - an app that runs on ram clears
« Reply #277 on: June 19, 2011, 11:35:44 pm »
Quote
3. Finish Solver++ :D

Haha, no.
I loled. ;D

Quote
4. Can you please release the Copy/Paste hook as a stand alone program?  I'd love to have it on my 84+SE, which I don't believe zStart is compatible with.

What? Why on earth do people think this doesn't run on 84+SE's? The 84+BE and 84+SE are essentially the same calculator. In fact, I use a 84+SE. And since it does run on 84+SE's, I don't think I need to make the copy and paste standalone.
Whoops, that's my typo. :(  I meant 83+SE, not 84+SE.  For the record, I'm running it on an 84+SE too. ;)


Everything else sounds awesome!  Can I bump this real quick though:
Can you make Mirage's two main hooks ([Alpha]/[Apps] + [On]) be enabled on RAM Clear like you do with OmniCalc and CtlgHelp?
« Last Edit: June 19, 2011, 11:35:59 pm by ztrumpet »

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 #278 on: June 19, 2011, 11:40:20 pm »
I forgot about the mirage ON + Apps. That's an easy one, so I'll make sure I do that.

But the ON + Alpha is a lot harder. I don't currently use a GetCSC hook, so I don't really have any way to detect that this has happened because pressing ON does nothing, and pressing Alpha doesn't register as a keypress because it's just a modifier. I'll see if I can find some weird way to detect it because I don't really want to make a getCSC hook as the first thing mirage does when you start it is kill the GetCSC hook.
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: zStart - an app that runs on ram clears
« Reply #279 on: June 20, 2011, 08:58:18 am »
I forgot about the mirage ON + Apps. That's an easy one, so I'll make sure I do that.

But the ON + Alpha is a lot harder. I don't currently use a GetCSC hook, so I don't really have any way to detect that this has happened because pressing ON does nothing, and pressing Alpha doesn't register as a keypress because it's just a modifier. I'll see if I can find some weird way to detect it because I don't really want to make a getCSC hook as the first thing mirage does when you start it is kill the GetCSC hook.
Hmm, interesting.  I guess you could always do it like DCS7 if you just wanted to add it to zStart and not call it a Mirage hook: Kerm made it into hold [On] and then tap [Stat].

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.

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 #280 on: June 20, 2011, 11:35:41 am »
By the way, this deserves a News in Omni (I think there was already one) and a ticalc.org one too :)

Offline dman2073

  • LV3 Member (Next: 100)
  • ***
  • Posts: 60
  • Rating: +0/-0
    • View Profile
Re: zStart - an app that runs on ram clears
« Reply #281 on: June 20, 2011, 07:26:41 pm »
Does this work on the nspire 84 mode?  Every time I attempt to install, it ram clears, and every time I use a picture at startup, it freezes at the picture and I have to pres the reset button.
Virus Loading...

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 #282 on: June 20, 2011, 10:15:11 pm »
No, flash writing on the Nspire is all messed up. Plus it uses a different boot code, which is why it's crashing.

The picture at start up freezing is because the Nspire does not have crystal timers, even though it should.
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 #283 on: June 21, 2011, 06:12:02 pm »
Omnicalc to zStart font converter. I didn't feel like messing with string input routines, so the source and destination names must be hard coded. Source font must be archived.
Code: [Select]
.NAME
"_SOURCE"->Str1
6->{Str1}
[BB6DC96F6D6E6963616C63]->Str2
.This hack is needed because Axe seems to have no support for protected programs and zStart requires the font to be protected. Also, why doesn't zStart use a appvars for the fonts?
"_DEST"->Str3
6->{Str3}
"FONT"->Str4
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
GetCalc(Str3,2052)->X
!If X
 Disp "Cannon create.",i
 Return
End
Copy(Str4,X,4)
X+4->X
Disp "Converting...",i
For(C,0,255)
 .Work around bugs in the way Axe handles files.
 C*7+11->G
 C*8+X->H
 For(D,0,6)
  {Y1+G}->E
  E->{H}
  G++
  H++
 End
 5->{H}
End
Disp "Arching...",i
Archive Str3
Disp "Done!",i
« Last Edit: June 21, 2011, 06:13:49 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 #284 on: June 21, 2011, 09:25:30 pm »
That's really awesome!  Thanks, DrDnar.

Here's my addition to the code.  I added input routines so you don't have to recompile it for each font. ;D

Code: [Select]
Data(6,0,0,0,0,0,0,0,0,0)->Str1
ClrHome
Output(0,4)
Disp "Input File Name"
sub(TYP,Str1)
[BB6DC96F6D6E6963616C63]->Str2
.This hack is needed because Axe seems to have no support for protected programs and zStart requires the font to be protected. Also, why doesn't zStart use a appvars for the fonts?
Data(6,0,0,0,0,0,0,0,0,0)->Str3
ClrHome
Output(0,4)
Disp "Output File Name"
sub(TYP,Str3)
ClrHome
"FONT"->Str4
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
GetCalc(Str3,2052)->X
!If X
 Disp "Cannot create.",i
 Return
End
Copy(Str4,X,4)
X+4->X
Disp "Converting...",i
For(C,0,255)
 .Work around bugs in the way Axe handles files.
 C*7+11->G
 C*8+X->H
 For(D,0,6)
  {Y1+G}->E
  E->{H}
  G++
  H++
 End
 5->{H}
End
Disp "Arching...",i
Archive Str3
Disp "Done!",i
.End of DrDnar's code
Return

Lbl TYP
0→A
Output(0,5)
"WRMH"→GDB5
det(3)
"VQLG"
det(3)
"ZUPKFC"
det(1)
" YTOJEB"
det(2)
"XSNIDA"
"        "→GDB9  //8 spaces
Repeat B=54 and (A≠0
getKey→B
If B=56 and (A≠0
A-1→A
Output(A,5,' '►Char)
Output(A,5)
End
If B=15
0→A
Output(0,5,GDB9)
Output(0,5)
End
If A<8
If B>10 and (B<48)
If {B+GDB5-11}→C
Disp C►Char
C→{A+r1+1}
A+1→A
End
End
End
End

Edit:  Hmm, I couldn't get it to work. :-\
As far as I can tell the problem is in your routine, DrDnar.
Here's the source I used.  I tried it with this font: http://www.ticalc.org/archives/files/fileinfo/288/28843.html And this one: http://www.ticalc.org/archives/files/fileinfo/297/29753.html
Edit 2: What version of Axe do you use?
« Last Edit: June 21, 2011, 10:15:12 pm by ztrumpet »