2005-02-21 08:39 PM
2005-02-21 08:39 PM
Hi everybody,
I'm useing ST7VD v3.1.1 and I have problem when compileing ASM project (Intel format of definitions). The problem is with bit interpretation because all bits that are defined as e.g. #define BIT4 4 #define BIT4 3 . . . and then used like that: BSET Register,#BIT4 BSET Register,#BIT3 . . . are compiled to instruction: BSET (Register's address),#1 BSET (Register's address),#3 . . . When I change definition of bit BIT4 to: #define BIT4 4h everything is O.K. and compiler generates proper instruction. Could anyone tell me what is wrong because I don't trust my compiler anymore. Thanks and regards galahard