SD

Store Doubleword

SD rs2, offset(rs1)

Stores a 64-bit doubleword to memory.

Details

SD stores the 64-bit doubleword in rs2 to memory at address rs1+sext(offset).

Pseudocode Operation

M[R[rs1] + sext(offset)][63:0] = R[rs2][63:0];

Example

SD x5, 16(x10)

Encoding

Binary Layout
imm[11:5]
31:25
rs2
24:20
rs1
19:15
011
14:12
imm[4:0]
11:7
0100011
6:0
 
Format S-Type
Opcode 0x23
Extension RV64I

Operands

  • rs2
    Source
  • rs1
    Base Address
  • offset
    Offset