sd

Operands

reg, [imm(reg) / %lo(id)], (reg)

Store double word : Store contents of t1 into effective memory double word address (64bit)

Variants

  • Store double word : Store contents of t1 into effective memory double word address (64bit) sd t1, -100(t2)
  • Store to Address (64bit) sd t1,%lo(label)(t2)

This example runs on RV64.

# value is initialized and naturally aligned for this operation.
.data
value: .dword 0
.text
la t0, value
li t1, 42
# Store 42 (bytes 2A 00 00 00 00 00 00 00) at value; inspect Memory.
sd t1, 0(t0)