Hi Guru's,
I am finding the SIMULATOR not operating as expected. Is it me, or is this an error in the SIMULATOR?
With the real life PIC, this seems to do as it should, but is difficult debugging without the STEP by STEP benefit of the SIMULATOR.
Any suggestions?
Regards,
Mort.
I am finding the SIMULATOR not operating as expected. Is it me, or is this an error in the SIMULATOR?
Code:
HSerSetup B9600_8, %01
settimer t1s_8
HSerFlag=0
HserPtr=0
ptr=0
.
.
...Receive three Bytes of DATA
.
.
ptr=0
sertxd(@ptrinc," ",@ptrinc," ",@ptr,cr) 'Displays DATA as expected
HSerFlag=0
timer=0
.
.
...Receive no DATA yet
.
.
Ready: 'At this point SIMULATOR shows System variables FLAGS=0, TIMER=0
if timer<2 and HSerFlag=0 then
goto Ready 'Should come here and goto Ready
else
goto received 'Comes here instead.
endif
received:
.
.
.
With the real life PIC, this seems to do as it should, but is difficult debugging without the STEP by STEP benefit of the SIMULATOR.
Any suggestions?
Regards,
Mort.