Store byte : Store the low-order 8 bits of t1 into the effective memory byte address
sb
Operands
reg, [imm(reg) / (reg) / imm / id / %lo(id)], [reg / (reg)]Variants
- Store byte : Store the low-order 8 bits of t1 into the effective memory byte address sb t1, -100(t2)
- Store Byte : Store the low-order 8 bits of t1 into the effective memory byte address sb t1,(t2)
- Store Byte : Store the low-order 8 bits of $t1 into the effective memory byte address sb t1,-100
- Store Byte : Store the low-order 8 bits of $t1 into the effective memory byte address sb t1,10000000,t2
- Store Byte : Store the low-order 8 bits of $t1 into the effective memory byte address sb t1,label,t2
- Store to Address sb 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 (byte 2A) at value; inspect Memory.
sb t1, 0(t0)