cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with ST7VD and complier

galahard
Associate II
Posted on February 22, 2005 at 05:39

Problem with ST7VD and complier

1 REPLY 1
galahard
Associate II
Posted on February 22, 2005 at 05:39

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