Folks - Daft question time - I'm pulling my remaining hair out.
I have a 40x2 receiving serial in data from a proxcard reader.
This data is being received and displayed correctly using sertxd.
What I am having trouble with is the following:
Main:SERIN d.4, T9600_8, b0
if b0 = 5 then goto sendout
goto main
sendout:
sertxd (b0,13,10)
goto main
I know the first digit to be received is 5 - therefore you would expect the program to move on to sendout routine but alas it doesn't.
if I change line 2 to
if b0 <> 5 then goto sendout
it works as expected by displaying the digit 5 in the terminal screen.
So it does actually work but just in reverse order as in 'equal to' and 'not equal to'.
I have spent two nights trying to figure out what I have done wrong.
Any help would be appreciated.
Hooter
I have a 40x2 receiving serial in data from a proxcard reader.
This data is being received and displayed correctly using sertxd.
What I am having trouble with is the following:
Main:SERIN d.4, T9600_8, b0
if b0 = 5 then goto sendout
goto main
sendout:
sertxd (b0,13,10)
goto main
I know the first digit to be received is 5 - therefore you would expect the program to move on to sendout routine but alas it doesn't.
if I change line 2 to
if b0 <> 5 then goto sendout
it works as expected by displaying the digit 5 in the terminal screen.
So it does actually work but just in reverse order as in 'equal to' and 'not equal to'.
I have spent two nights trying to figure out what I have done wrong.
Any help would be appreciated.
Hooter