NAGARJUNA REDDY

Memory operand constraint

Discussion created by NAGARJUNA REDDY on Nov 2, 2011

Hi,

 

 How to replace Memory operand constraint "m" in Codewarrior for HCS12 controller.

 

"m" (*((unsigned char *)&log_tooth+1)), \  // byte 3:**2**:1:0
 "m" (*((unsigned int *)&log_tooth+1)), \ // bytes 3:2:**1**:**0**
 "m" (synch),  \
 "m" (flagbyte1) ;

 

While compiling the above code in codewarrior i am getting the below compiler error.

 

Error : C12070 Identifier expected.

 

 

 As Memory operand constraint is not supported in codewarrior, can someone suggest the solution for the above problem.

 

Regards,

Nagarjuna Reddy

Outcomes