0 Members and 3 Guests are viewing this topic.
:AsmPrgmSECURITE
{====______}
{=========_}
Raw Key Hook:...If unlocked other stuff including 'RES 7,(IY+$28)...SET 7,(IY+$28)...CPDR ;check key pressed against keys to blockJR Z,BlockCP kOffRET NZ ;let it go if none of thoseDILD B,3 ;number of interrupts to wake up. The 'on' key seems to like to cause extra.LD A,2 ;turn off lcdOUT ($10),A Off:LD A,8 clear interruptsOUT (3),ALD A,$11 ;On key and link/usb portOUT (3),A OffLoop:IN A,(4) ;interrupt stateAND $F7 ;ignore the 'on' key status bitJR Z,OffLoopDJNZ Off ;More interrupts needed to exit?LD B,ALD A,3 ;turn on lcdOUT ($10),ALD A,$0B ;back to normalOUT (3),AEILD A,$10AND B ;= BIT 4,BJR Z,BlockLD A,$FFLD (CurKStr),A ;see App Change Hook, also used as a pointer to the current key in the keystring Block:XOR ARET...App Change HookDB $83PUSH AF ;seems to act funny if I don't restore thisSET 7,(IY+$28) ;treats kOff as a keypress, disables PTT as a side-effectLD A,(CurKStr)CP $FFJR NZ,FwdRES 7,(IY+$28) ;treat kOff as a command Fwd:POP AFRET
grrr... I wanted to include a backup utility with this, but its failing.My calc is one of the newer ones, so no pages 4-7. I would think pages 2 and 3 would work well enough though... but apparently not. The calc crashes when trying to parse BASIC with just a backup, and resets immediately upon return to ti-os with a backup and restore.Scratch that, re-running the app after backup strangely prevents crashing, but the restore still fails.Everything else mostly works. That'd be the backdoor that still fails.
Sorry to hear, I hope you can figure it out soon By the way I assume page 4-7 are the extra RAM pages? I think those should be avoided if possible, for maximum compatibility with newer calcs.
Quote from: lookitsan00b on January 08, 2011, 11:51:10 pmgrrr... I wanted to include a backup utility with this, but its failing.My calc is one of the newer ones, so no pages 4-7. I would think pages 2 and 3 would work well enough though... but apparently not. The calc crashes when trying to parse BASIC with just a backup, and resets immediately upon return to ti-os with a backup and restore.Scratch that, re-running the app after backup strangely prevents crashing, but the restore still fails.Everything else mostly works. That'd be the backdoor that still fails.Actually, 82 (ram page 2) should work. TIOS uses 80 and 81 (ram pages 0 and 1).
More blocks are good, especially for people like Yunhua98 By the way, when a program is in Pause mode or Input mode (like Wacky Fun Random Numbar Generator ), it seems that removing a battery causes a RAM clear too. That might be a bit hard to block, though, other than blocking the entire prgm menu and prgm command. Same thing goes for long strings of Sin/rand commands or the SortA/D( commands if someone sorts a 999 elements list.
I'm glad you,re still around and that's it's still progressing. ^^Is the isometric engine still in the works too, by the way?