Hi everyone,
I'm trying to understand how to use read and write to store a series of data.
I wrote this code for practice. I'm trying to store 1,2,3,4,5,6,7,8,9 and 10 in b0: 2,4,6,8 and 10 in b1: and 1,3,6, and 9 in b2. All I see in the serial window is 10,10,10
What am I doing wrong?
Thanks
pilko
I'm trying to understand how to use read and write to store a series of data.
I wrote this code for practice. I'm trying to store 1,2,3,4,5,6,7,8,9 and 10 in b0: 2,4,6,8 and 10 in b1: and 1,3,6, and 9 in b2. All I see in the serial window is 10,10,10
What am I doing wrong?
Thanks
pilko
Code:
main:
pause 200
let b9=b9+1
if b9>12 then aa
let b0=b0+1MAX 10
let b1=b1+2MAX 10
let b2=b2+3MAX 10
write b3,b0
write b3,b1
write b3,b2
goto main
aa:
read b3,b0
read b3,b1
read b3,b2
sertxd (#b0,#b1,#b2,cr,lf)