Hello, i have been using #define to give practical names to many of the BIT variables of B0 that i use in my program like ON or OFF switches.
For example of how i use #define:
-----------------------------
#define REPEAT bit7
#define NO 0
#define YES 1
main:
REPEAT = NO
if REPEAT = NO then goto main
...
----------------------------
My question is that this works in Editor with no errors but in VSM i get an error ''unknown symbol - REPEAT''
Am i doing something illegal or is there another way of giving a name to the many BIT variables of B0, B1, B2 and B3 that works also in VSM?
Thanks
Protezoid
For example of how i use #define:
-----------------------------
#define REPEAT bit7
#define NO 0
#define YES 1
main:
REPEAT = NO
if REPEAT = NO then goto main
...
----------------------------
My question is that this works in Editor with no errors but in VSM i get an error ''unknown symbol - REPEAT''
Am i doing something illegal or is there another way of giving a name to the many BIT variables of B0, B1, B2 and B3 that works also in VSM?
Thanks
Protezoid