This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[E0003] Unexpected trailing operand(s) , CLA



Hi ,

I have a strange behavior , in the CLA  module  when comparing between Register and constant (#define) , the compiler issue  [E0003] Unexpected trailing operand(s).

I look at ADC_CLA  example  for starting point .

The problematic code as follow:

 

CLA.asm

.....

....

MCMPF32 MR2,#N_1.0                 ([E0003] Unexpected trailing operand(s))

.....

....

MCMPF32 MR3,#N_2.0                ([E0003] Unexpected trailing operand(s))

....

...

 

Where N_1 , N_2 are constantes ,that  define in CLAShared.h

....

...

#define N        50

#define N_1    N-1

#define N_2    N-2

......

....

 

 

When  writing the above lines with a specific Number such as :

.....

....

MCMPF32 MR2,#49.0

.....

....

MCMPF32 MR3,#48.0

....

....

 

There wont be any error .

 

any Suggestions ?

 

  • Hi eyal,

     

    I modified task 1 of the cla_adc example with these two lines and the code compiles.

        MCMPF32       MR0,#N_1.0;
        MCMPF32       MR0,#N_2.0;

    I am using codegen v5.2.6.  If you are using an older compiler could you update and try again.