Posted by old_cow_yellow February 26, 2008
In one of the recent TI errata (slaz033b.pdf), there is a method to
un-optimize the Assembler:


Note that certain assemblers may optimize an indexed addressing source
operation of 0(Ry) to an indirect register mode @Ry operation, which
will not work. The following is an example of reading the word memory
location 0x4000 in marginal read mode, preventing a possible assembler

mov.w #0x4000,R15 ; Pointer to target address
dec.w R15 ; Decrement pointer
mov.w 1(R15),R12 ; Read memory contents at R15 + 1, store result in R12


Beginning Microcontrollers with the MSP430