AtomSoft
Well-Known Member
Using ASM Im trying to wrap my head on this for days now just cant focus. I want to create a USART Program for my pic which requires the user to enter a password.
I have futz old code and working on it .
I can receive info no problem like 1 character at a time now the issue is how would i store these into 1 password to check 4 charactors long?
Or would i have to create 4 separate variables and logged flag current flag?
so it checks if logged in already if so skip entire login and show menu
if not set current flag to 1 and get first character then check if curr = 4
get second and set current to 2 then check if curr = 4
get third and set current to 3 then check if curr = 4
get 4th and set current to 4 then check if curr = 4
if curr = 4 then compare "CFSEQ" each to the 4 other variable burned into chip. If correct then set logged in flag.
Does this sound overcomplicated? or just about right?
Please any tips would help alot!
I have futz old code and working on it .
I can receive info no problem like 1 character at a time now the issue is how would i store these into 1 password to check 4 charactors long?
Or would i have to create 4 separate variables and logged flag current flag?
so it checks if logged in already if so skip entire login and show menu
if not set current flag to 1 and get first character then check if curr = 4
get second and set current to 2 then check if curr = 4
get third and set current to 3 then check if curr = 4
get 4th and set current to 4 then check if curr = 4
if curr = 4 then compare "CFSEQ" each to the 4 other variable burned into chip. If correct then set logged in flag.
Does this sound overcomplicated? or just about right?
Please any tips would help alot!
Last edited: