Store halfword : Store the low-order 16 bits of t1 into the effective memory halfword address
sh
Operands
reg, [imm(reg) / (reg) / imm / id / %lo(id)], [reg / (reg)]Variants
- Store halfword : Store the low-order 16 bits of t1 into the effective memory halfword address sh t1, -100(t2)
- Store Halfword : Store the low-order 16 bits of $1 into the effective memory halfword address sh t1,(t2)
- Store Halfword : Store the low-order 16 bits of $t1 into the effective memory halfword address sh t1,-100
- Store Halfword : Store the low-order 16 bits of t1 into the effective memory halfword address using t2 as a temporary sh t1,10000000,t2
- Store Halfword : Store the low-order 16 bits of t1 into the effective memory halfword address using t2 as a temporary sh t1,label,t2
- Store to Address sh t1,%lo(label)(t2)
# value is initialized and naturally aligned for this operation.
.data
value: .word 0
.text
la t0, value
li t1, 42
# Store 42 (bytes 2A 00) at value; inspect Memory.
sh t1, 0(t0)