Remove the spaces in your arrays and see if this changes anything.
For example, change this (and others). . .
if password [0] <> "1" then user_password
if password [1] <> "2" then error
if password [2] <> "3" then error
if password [3] <> "4" then error
if password [4] <> "5" then error
if password [5] <> "6" then error
if password [6] <> "7" then error
if password [7] <> "8" then
goto error
to this. . .
if password[0] <> "1" then user_password
if password[1] <> "2" then error
if password[2] <> "3" then error
if password[3] <> "4" then error
if password[4] <> "5" then error
if password[5] <> "6" then error
if password[6] <> "7" then error
if password[7] <> "8" then
goto error
and also change this (and others). . .
password var byte [8]
codeword var byte [8]
codeword1 var byte [8]
to this . . .
password var byte[8]
codeword var byte[8]
codeword1 var byte[8]
I always thought that they had to be together without a space, but I could be wrong. Doesn’t hurt to try it.
Let me know.
Bookmarks