Hi, How do I get this test program to run through the simulation? It waits at the serin for data entry but regardless of what is entered it ether pops up again or says try again – illegal serin data entry. Any help appreciated.
main:
serin 7,t2400,($55,$55),b0,b1
debug
test_ldr:
if b0 > 40 then ldr_high
ldr_low:
low 0
goto test_temp
ldr_high:
high 0
test_temp:
if b1 > 20 then temp_high
temp_low: low 1
goto main
temp_high:
high 1
goto main
Ted.
main:
serin 7,t2400,($55,$55),b0,b1
debug
test_ldr:
if b0 > 40 then ldr_high
ldr_low:
low 0
goto test_temp
ldr_high:
high 0
test_temp:
if b1 > 20 then temp_high
temp_low: low 1
goto main
temp_high:
high 1
goto main
Ted.
Last edited: