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.

Compiler/MSP430G2755: CCSv7 assembled code error

Part Number: MSP430G2755

Tool/software: TI C/C++ Compiler

A customer has complained that his bellow % operator code was not assembled correctly.

   mov.w   #(0x232800 % 0x10000),R4    ;NG

He says v15.12 is OK, but v16.9 is NG. He wants to fix this trouble to make his codes compatible.

I have reproduced this trouble as bellow. With using CCSv7, ‘%’ operator cause unjust code while ‘/’ operator make correct code.

CCSv7.3, compiler v16.9.6;

  

CCSv6.2, compiler v15.12.3;

Best Regards,
Kazuo Yamauchi