Load word : Reads the 32-bit (4-byte) value at memory address ($t2 + offset) and places it in $t1. The address must be word-aligned (divisible by 4). Example: 'lw $t0,0($sp)' loads the value at the top of the stack.
lw
Operands
$reg, [imm($reg) / ($reg) / imm / id / id($reg) / id+imm / id+imm($reg)]Variants
- Load word : Reads the 32-bit (4-byte) value at memory address ($t2 + offset) and places it in $t1. The address must be word-aligned (divisible by 4). Example: 'lw $t0,0($sp)' loads the value at the top of the stack. lw $t1,-100($t2)
- Load Word : Set $t1 to contents of effective memory word address lw $t1,($t2)
- Load Word : Set $t1 to contents of effective memory word address lw $t1,-100
- Load Word : Set $t1 to contents of effective memory word address lw $t1,100
- Load Word : Set $t1 to contents of effective memory word address lw $t1,100000
- Load Word : Set $t1 to contents of effective memory word address lw $t1,100($t2)
- Load Word : Set $t1 to contents of effective memory word address lw $t1,100000($t2)
- Load Word : Set $t1 to contents of memory word at label's address lw $t1,label
- Load Word : Set $t1 to contents of effective memory word address lw $t1,label($t2)
- Load Word : Set $t1 to contents of effective memory word address lw $t1,label+100000
- Load Word : Set $t1 to contents of effective memory word address lw $t1,label+100000($t2)
Loading...