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.

CCS4 cortex-M3 assembler.

EWARM assembler have the instruction MOV32 Rn,#Variable, that load the address of a variable in the register Rn. How it can be done with CCS4 assembler?

MOVT R0, Variable         ; it works for put the MSB of Variable address into the R0

MOV   R0,Variable          ; it generates a compiler error.

How to put the 16 bits LSB of an variable address into the register?