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.

"Encouraging" the MSP430 PC v4.0.0 C/C++ compiler to use BIC/BIS instructions



In the documentation for many of the MSP430 peripherals the reader is advised:

"it is recommended to set or clear [this/these] bit(s) using BIS.B or BIC.B instructions,
rather than MOV.B or CLR.B  instructions"

The  C/C++   code: P6DIR |=  0x30u;
              generates: OR.B   #48,&P6DIR+0
             rather than: BIC.B  #48,&P6DIR+0 

Is there some way of encouraging the compiler to use the BIS/BIC
instructions whenever possible?

Tool Versions: Code Composer Studio  5.1.0.09000 
                            MSP430 Compiler           4.0.0