Hi, I was writing a ti-basic password protection system,
and every-time i input anything, weather right or wrong, it
shutdowns the program. whereas when i type in the correct pass
the keys xkcd it should show me a welcome screen
Code:
I really don't want it optimized, just want to know what the error is.
please and thank you!
and every-time i input anything, weather right or wrong, it
shutdowns the program. whereas when i type in the correct pass
the keys xkcd it should show me a welcome screen
Code:
:ClrHome:Disp "CalcLock! By M.A"
:0:Asm(prgmONBLOCK
:Disp " --"
:Disp " ! !"
:Disp " ----"
:Disp " !{box} !"
:Disp " ----"
:Disp " Pass"
:For(A,1,4)
:Repeat Ans
:getKey
:End
:Ans→K
:K→∟KEY2(A)
:Output(8,6+A,"*"
:End
:{91,63,43,51}→∟BACK
:If dim(∟KEY2)=dim(∟BACK
:Then
:If min(∟KEY2≠∟BACK
:Goto W
:End
:If min(∟KEY2≠∟KEY):Then
:Goto W
:Else
:Goto S
:End
:Lbl S:ClrHome
:Disp "Welcome!":Disp "Max":Disp ""
:Goto U
:
:Lbl W:ClrHome
:DelVar A
:DelVar B
:DelVar K
:DelVar ∟BACK
:1:Asm(prgmONBLOCK
:Asm(prgmCALCOFF
:Stop:End
:
:Lbl U
:DelVar A
:DelVar B
:DelVar K
:DelVar ∟BACK
:1:Asm(prgmONBLOCK
:Asm(prgmDISDONE
:Stop:End
I really don't want it optimized, just want to know what the error is.
please and thank you!