0 Members and 3 Guests are viewing this topic.
Let's say I want to make a password program with zstart. Am I correct to assume that the "run on start" thing is just like the start up app?
Quote from: Freyaday on October 05, 2011, 12:08:27 amI just came up with an idea:An Undo button.So, so many times I've accidentally pressed the wrong keys and deleted a line I didn't mean to.Can this be done, plz?Or, at the very least, can there be a hook installed that logs the contents of a line when an action is performed that overwrites it, like pressing the CLEAR key or 2nd RECALLThat would be super handy! I have cleared "pages" of sprite data with on keypress
I just came up with an idea:An Undo button.So, so many times I've accidentally pressed the wrong keys and deleted a line I didn't mean to.Can this be done, plz?Or, at the very least, can there be a hook installed that logs the contents of a line when an action is performed that overwrites it, like pressing the CLEAR key or 2nd RECALL
This is prolly too big to be in the app, but how about a find/replace? Is the program editor too unfriendly and/or poorly coded to handle it?
Quote from: Darl181 on October 08, 2011, 11:54:41 amThis is prolly too big to be in the app, but how about a find/replace? Is the program editor too unfriendly and/or poorly coded to handle it? That's totally possible. I can see a little trouble with actually displaying the whole line that the search word is in, but it should be doable. However, when I say doable, this would be >2KB worth of code, so...
Quote from: mrmprog on October 08, 2011, 11:33:42 amLet's say I want to make a password program with zstart. Am I correct to assume that the "run on start" thing is just like the start up app?No, run on zStart is if you want to add an extension to the app, it's got a lot of rules and only runs when you quit the app/ram clear. The one you want is run on "Turning On", this functions exactly like start-up.
In other news, Frey continues kicking unprecedented levels of ass.
Ah! Find/replace was what I was gonna ask for next!About the Undo:4000 bytes is a little ridiculous for a line.I have only had one source in my entire coding experience go over 4k, and that's because it consisted of gigantic walls of text. One source! I understand that sources can get a lot bigger, but the point I am trying to make is that, if you have one line that's 4000 bytes long, you really need to rethink your code, even if it's data; one keypress, and thousands of bytes of data are gone. What about halving it? Having half for the undo, and half for the clipboard.Also, can we please have a button to quit the editor without saving? Or, better yet, have a button that brings up a menu of all the things zStart can do, and one option in that menu is to quit w/o saving.
Quote from: thepenguin77 on October 08, 2011, 04:56:15 pmQuote from: mrmprog on October 08, 2011, 11:33:42 amLet's say I want to make a password program with zstart. Am I correct to assume that the "run on start" thing is just like the start up app?No, run on zStart is if you want to add an extension to the app, it's got a lot of rules and only runs when you quit the app/ram clear. The one you want is run on "Turning On", this functions exactly like start-up.Ok, Is there any way to turn the calc off while running a program like that? Using an opcode crashes.
I don't think it was removed.Source: 5 sec ago
Quote from: mrmprog on October 08, 2011, 08:54:14 pmQuote from: thepenguin77 on October 08, 2011, 04:56:15 pmQuote from: mrmprog on October 08, 2011, 11:33:42 amLet's say I want to make a password program with zstart. Am I correct to assume that the "run on start" thing is just like the start up app?No, run on zStart is if you want to add an extension to the app, it's got a lot of rules and only runs when you quit the app/ram clear. The one you want is run on "Turning On", this functions exactly like start-up.Ok, Is there any way to turn the calc off while running a program like that? Using an opcode crashes.I assume that you are doing bcall(_powerOff)? (EF 08 50) You are right, this won't work very well at all. I know you're probably writing this in axe, but the best thing to do would be to make a getCSC hook, return back to zStart, and as soon as the calculator begins to run, the getCSC hook will kick in and from there you can turn off the calculator. (Tell me if you have no idea how to do this, I can probably set you up.)
uh, why would you need to kill on+mode?
Yeah, I was using EF0850. And I have no idea what you said, so I don't know how to do it. Also, I want to do this in Axe. Thanks loads!
:[83 3E 00 FD 77 34 21 00 00 22 88 9B 3E 00 32 8A 9B EF 08 50]->Str1:Str1+19:Asm(11 85 98 01 14 00 ED B8 FD 7E 34 32 74 98 2A 88 9B 22 79 98 3A 8A 9B 32 7F 98 EB 23 3E 01 EF 7B 4F)
hook: add a, e ;1 ld a, 0 ;2 ld (iy + $34), a ;3 ld hl, 0000 ;3 ld (getCSCHookPtr), hl ;3 ld a, 0 ;2 ld (getCSCHookPtr+2), a ;3 bcall(_powerOff) ;3 ;20asm: ld de, appBackUpScreen+19 ld bc, 20 lddr ld a, (iy + $34) ld (appBackUpScreen+2), a ld hl, (getCSCHookPtr) ld (appBackUpScreen+7), hl ld a, (getCSCHookPtr+2) ld (appBackUpScreen+13), a ex de, hl inc hl ld a, 1 bcall(_enableGetCSCHook)