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.

TMS320F280039C: How to define a constant for embedded assembly in C?

Part Number: TMS320F280039C

Dear Champs,

I am asking this for our customers.

The user can use below codes for bootloader-like code in C to jump to and back from an address.

                asm("    MOVL XAR7,#0x81000");

                asm("    LCR *XAR7");

They want to change #0x81000 to a defined constant address in the beginning of the C file so that they can just maintain the address like 

#define address 0x81000

.....

                asm("    MOVL XAR7, address");

                asm("    LCR *XAR7");

Is it possible to do so in a similar way using C code or embedded assembly in the beginning of the same C code?