Does anyone know why this doesn't work:
#define x 5;
...
if(state == x){... }
Does anyone know why I can't do the above comparison?
Yes - because it's wrong!
See Andy's Handy Hint for Debugging Preprocessor Problems: www.8052.com/.../29152
Note that this is a general (and quite common) 'C' mistake - nothing specifically to do with Keil or ARM or 8052/8051...
Thanks that definitely solved the issue.
View all questions in Keil forum