#define MHI 1; unsigned char xdata TTT _at_ 0xff00; if((TTT&0x01)==MHI) { } Hi,All I have a C51 program show on upper. I found it show error message syntax error after build. Then I tried to change code if((TTT&0x01)==1). and build .The compiler is pass. Is it a compiler limit or my mistake. Thanks
We've all made this mistake at some time i'm sure: #define lines do not need terminated with a semicolon
#define MHI 1 unsigned char xdata TTT _at_ 0xff00; if((TTT&0x01)==MHI) { }
Thanks a lot.
http://www.8052.com/forum/read.phtml?id=29152