sw

Operands

$reg, [imm($reg) / ($reg) / imm / id / id($reg) / id+imm / id+imm($reg)]

Variants

  • Store word : Writes the 32-bit value in $t1 to memory at address ($t2 + offset). The address must be word-aligned (divisible by 4). Example: 'sw $t0,0($sp)' stores a value at the top of the stack. sw $t1,-100($t2)
  • Store Word : Store $t1 contents into effective memory word address sw $t1,($t2)
  • Store Word : Store $t1 contents into effective memory word address sw $t1,-100
  • Store Word : Store $t1 contents into effective memory word address sw $t1,100
  • Store Word : Store $t1 contents into effective memory word address sw $t1,100000
  • Store Word : Store $t1 contents into effective memory word address sw $t1,100($t2)
  • Store Word : Store $t1 contents into effective memory word address sw $t1,100000($t2)
  • Store Word : Store $t1 contents into memory word at label's address sw $t1,label
  • Store Word : Store $t1 contents into effective memory word address sw $t1,label($t2)
  • Store Word : Store $t1 contents into effective memory word address sw $t1,label+100000
  • Store Word : Store $t1 contents into effective memory word address sw $t1,label+100000($t2)

Store word : Writes the 32-bit value in $t1 to memory at address ($t2 + offset). The address must be word-aligned (divisible by 4). Example: 'sw $t0,0($sp)' stores a value at the top of the stack.

Loading...