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.

CCSTUDIO: Intermixing C and assembly code

Part Number: CCSTUDIO

I'm using the TMS320x28335 processor and its related toolsest.

I'm trying to save a value from the stack to a "C"-language variable. I'm using inline assembly as follows:

 

unsigned long RetAddr;

 

asm("POP @AH");

asm("{POP @AL");

asm("MOVL @_RetAddr,ACC");

 

The accumulator is not being stored in RetAddr as I would have expected. What am I doing wrong?