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.

MSP430FR2111: Register Addressing

Part Number: MSP430FR2111

Is it possible in the MSP430(X) to use a block move (instruction, macro or subroutine ) to save/restore register states (i. e. R4-R10) during a context switch? I want to preserve task states across runtime instances guess what I'm really looking for  is a MOVEM (a la 68K/CF ISA_A) instruction or some way to emulate such an instruction. It looks do-able by using the extended PUSHX/POPX in combination with using the SP to do double duty during switches but that would not be preferred.

  • Correction to above post It looks do-able by using the extended PUSHM(X)/POPM(X) in combination with using the SP to do double duty during switches but that would not be preferred.

    Also, my project is "Assembly Only," nonetheless, I want to maintain 'C' compatible stack frames.
  • MOVEM instructions or similar are not provided for MSP430(X), you will need to create a workaround like the one you've already suggested. You could ask the TI Compiler Forum for further advice.

    Regards,
    Ryan

**Attention** This is a public forum