How do I use a string stored in a 8 byte array to...
deno
Posts: 242
to make a comparison.· Suppose I have the string FORWARD_· already stored·in a 8 byte array called keyboard_data.· Now I want to retreive that whole string to make a comparison:
IF (8 byte array...keyboard_data) =·"forward_" then
· GOSUB robo_forward
ENDIF
I have the string in the array in eeprom, but I can't figure out how to get it out in one piece to make the above comparison.
I am trying to use the ezKEYER from Multilabs to control "robo child".
Deno
IF (8 byte array...keyboard_data) =·"forward_" then
· GOSUB robo_forward
ENDIF
I have the string in the array in eeprom, but I can't figure out how to get it out in one piece to make the above comparison.
I am trying to use the ezKEYER from Multilabs to control "robo child".
Deno
Comments
for n = 0 to 8
if keyboard_data(n) <> comparison_string(n) then goto no_match
next
' if execution reaches here, the strings are the same
no_match:
' if this label is jumped to, the strings aren't the same