STP: Store Pair of Registers

https://developer.arm.com/documentation/ddi0602/2023-12/Base-Instructions/STP—Store-Pair-of-Registers-?lang=en

  • Calculates an address from a base register value and an immediate offset, and stores two 32bit words or two 64bit
  • doublewords to the calculated address, from two registers.q

https://blog.naver.com/PostView.naver?blogId=crushhh&logNo=222386913294

Usage

Post-index

STP <Wt1>, <Wt2>, [<Xn|SP>], #<imm>
STP <Xt1>, <Xt2>, [<Xn|SP>], #<imm>

Pre-index

STP <Wt1>, <Wt2>, [<Xn|SP>, #<imm>]!
STP <Xt1>, <Xt2>, [<Xn|SP>, #<imm>]!
  1. SP를 <imm> 만큼 이동
  2. SP, #<imm> 주소: Xt1 저장
  3. SP, #<imm> 주소 + 0x8: Xt1 저장

Signed offset

STP <Wt1>, <Wt2>, [<Xn|SP>{, #<imm>}]
STP <Xt1>, <Xt2>, [<Xn|SP>{, #<imm>}]

Armv7