asm_thumb2_stack.rst 725 B

1234567891011121314151617181920
  1. Stack push and pop
  2. ==================
  3. Document conventions
  4. --------------------
  5. The ``push()`` and ``pop()`` instructions accept as their argument a register set containing
  6. a subset, or possibly all, of the general-purpose registers R0-R12 and the link register (lr or R14).
  7. As with any Python set the order in which the registers are specified is immaterial. Thus the
  8. in the following example the pop() instruction would restore R1, R7 and R8 to their contents prior
  9. to the push():
  10. * push({r1, r8, r7}) Save three registers on the stack.
  11. * pop({r7, r1, r8}) Restore them
  12. Stack operations
  13. ----------------
  14. * push({regset}) Push a set of registers onto the stack
  15. * pop({regset}) Restore a set of registers from the stack