LD
Load Doubleword
LD rd, offset(rs1)
Loads a 64-bit doubleword from memory.
Details
LD loads a 64-bit doubleword from memory at address rs1+sext(offset) and writes it to rd.
Pseudocode Operation
R[rd] = M[R[rs1] + sext(offset)][63:0];
Example
LD x1, 0(x2)
Encoding
Binary Layout
imm[11:0]
31:20
rs1
19:15
011
14:12
rd
11:7
0000011
6:0
Operands
-
rd
Destination Register -
rs1
Base Address -
offset
Byte Offset