The cause of the problem seems to be lines 182 and 206. GCBASIC doesn't like this:
IF SensorOn And CapturedEvent off Then
However, when I change it to this:
IF SensorOn And CapturedEvent = off Then
It compiles fine. This is to do with the way that GCBASIC compiles bit tests - if you use the equals sign, it will use newer code which can handle being combined with And and Or. However, with no equals sign, it will use the older code which can't be combined with And and Or.
I'll see if I can get GCBASIC to generate a more helpful error message!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
My program http://capaction.free.fr/JVDx0313a.txt is successfully compiled with GCASM
But I get an error file with: Error: GCASM: Symbol 37.00 has not been defined
When I test my program on the workshop ignition bench all cases using the TimerCount variable fail.
The CCP trigger alone works fine on case 2
The cause of the problem seems to be lines 182 and 206. GCBASIC doesn't like this:
However, when I change it to this:
It compiles fine. This is to do with the way that GCBASIC compiles bit tests - if you use the equals sign, it will use newer code which can handle being combined with And and Or. However, with no equals sign, it will use the older code which can't be combined with And and Or.
I'll see if I can get GCBASIC to generate a more helpful error message!