SLAZ102AB October 2012 – May 2021 CC430F6137
CPU Module
Compiler-Fixed
Instruction BIT.B @Rx,PC uses the wrong PC value
The BIT(.B/.W) instruction in indirect register addressing mode uses the wrong PC value. This instruction is represented by 2 bytes of opcode. If the Program Counter (PC) is used as the destination register, the 2 opcode bytes of the current BIT instruction are not accounted for. The resulting operation executes the instruction using the wrong PC value and this affects the results in the Status Register (SR).
None. Note that compilers will not generate a BIT instruction that uses the PC as an operand.
Refer to the table below for compiler-specific information.
IDE/Compiler | Version Number | Notes |
---|---|---|
IAR Embedded Workbench | Not affected | |
TI MSP430 Compiler Tools (Code Composer Studio) | Not affected | |
MSP430 GNU Compiler (MSP430-GCC) | Not affected |