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.

Compiler/TMS320F28335: Assembly Language-Swap Register Values

Part Number: TMS320F28335


Tool/software: TI C/C++ Compiler

Hello

I want to put the return address value of the RPC register into the memory address pointed to by the general-purpose register XAR.

__asm(" MOVL XAR4, #0x00eb40"); 
__asm(" MOVL *XAR4, RPC"); //  How do I fix this so that the RPC address is in #0x00eb40 pointed to by XAR4?
__asm(" ADD AR4, #1");

Thanks, Regards

Han