0 Members and 1 Guest are viewing this topic.
I don't think it resets the stack or any of the non-volatile RAM storage areas (aside from the homescreen), so it shouldn't cause major leaks.
AsmPrgmEF0850C9
AsmPrgm210000224B84EF4645EF0850C9
Quote from: Qwerty.55 on March 20, 2011, 06:57:17 pmI don't think it resets the stack or any of the non-volatile RAM storage areas (aside from the homescreen), so it shouldn't cause major leaks.It might cause the copy of your program at $9D95 to never be deleted. That can cause major leaks.
My programme runs on startup. When someone simply removes the battery while running ram clears and the password is no more (I'm the only one who knows that at my stupit skool )Can I prevent this from happening?
{====______}
{=========_}
Yep. Asm(215AA522BE85) should prevent ram clears. However, it will probably (never tried it) remain in effect until you next turn the calc off, so when you exit your program you might want to Asm(21000022BE85), although it shouldn't doesn't have any nasty side-effects if you don't.
ld hl, $E5E1 ;pop hl, push hl ld (appBackUpScreen), hl ld a, $C9 ld (appBackUpScreen+2), a call appBackUpScreen ;we have to get a pointer to the runnersizeToAdd: ld de, sizeToAddEnd-sizeToAdd add hl, de ld de, appBackUpScreen ld bc, runnerEnd-runnerStart ldir jp appBackUpScreensizeToAddEnd:runnerStart: bcall(_chkFindSym) ex de, hl ld e, (hl) ;grab its size inc hl ld d, (hl) ld hl, $9D95 bcall(_delMem) bcall(_powerOff) ;that's pretty nifty, I just found thisrunnerEnd:
Needless to say, you should not run this from within Mirage.
:[110F0019117298011000EDB0C37298EFF142EB5E235621959DEF5743EF0850]->GDB000Then.:GDB000:Asm(E9)
sizeToAdd: ld de, sizeToAddEnd-sizeToAdd add hl, de ld de, appBackUpScreen ld bc, runnerEnd-runnerStart ldir jp appBackUpScreensizeToAddEnd:runnerStart: bcall(_chkFindSym) ex de, hl ld e, (hl) ;grab its size inc hl ld d, (hl) ld hl, $9D95 bcall(_delMem) bcall(_powerOff) ;that's pretty nifty, I just found thisrunnerEnd:
Quote from: thepenguin77 on March 21, 2011, 11:19:47 pmNeedless to say, you should not run this from within Mirage.Why not? I don't know much about shells, sorry