Help needed with hiding program
Mapar007 21 Nov 2008 16:42
I was creating a hiding program to exercise my asm "skills" (lolz, they're worth nothing a.t.m. ;) ), but it doesn't work… This is the code:
.nolist
#include "ti83plus.inc"
.list
.org $9D93
.db t2ByteTok, tAsmCmp
b_call(_RclAns)
b_call(_ChkFindSym)
jr c,NotFound
scf
ccf
ld de,-7 ;mov to first char of name
sbc hl,de
ld a, (hl) ;ld the char into a
add a, -40h ;dec the char
ld (hl), a ;put it back
ld hl,Msg2
b_call(_PutS)
ret
NotFound:
ld hl,Msg
b_call(_PutS)
b_call(_NewLine)
ret
Msg:
.db "Failure!",0
Msg2:
.db "Success!",0
.end
.end
It compiles, but when I run it on a test prog (using the Flash debugger), it says "success", but the program is not hidden at all…