Incorrect code between decision and stop

Dr_John

Member
In Flowchart mode:
I enter the following:
Start <-<-<-<-<-<-+
if pin0=1 Y----+ ^
N-------------V--+
|
stop

The code I see produced is:

main:
label_14: if pin0=1 then label_19
goto label_14

stop

'================================
as you can see, label_19 is not inserted before the stop with the result that it fails a syntax check when you try to download.

Is this a known bug? It seems to be new for version 5.0.7

Is there a workround? It is causing great headaches trying to use existing teaching materials.
 

Rickharris

Senior Member
the error is cause by using the stop box. the conversion isn't inserting the label 19 prior to the stop command.
This can be shown if you put, say, a let command just before the stop box - then the compiling works correctly with the appropriate label going in front of the let command.

As the programme isn't really functional I am not sure if this is a bug or feature.


Edited by - rickharris on 28/02/2007 23:17:49
 

Technical

Technical Support
Staff member
Yes, it's a known bug that stop looses its label marker, it will be fixed in the next release.
A simple workaround is to put another command befoe the stop e.g. pause
 
Top