Unaligned Load Halfword : Set $t1 to the 16 bits, zero-extended, starting at effective memory byte address
ulhu
Operands
$reg, [imm($reg) / imm / id / id+imm / ($reg) / id($reg) / id+imm($reg)]Variants
- Unaligned Load Halfword : Set $t1 to the 16 bits, zero-extended, starting at effective memory byte address ulhu $t1,-100($t2)
- Unaligned Load Halfword : Set $t1 to the 16 bits, zero-extended, starting at effective memory byte address ulhu $t1,100000
- Unaligned Load Halfword : Set $t1 to the 16 bits, zero-extended, starting at effective memory byte address ulhu $t1,label
- Unaligned Load Halfword : Set $t1 to the 16 bits, zero-extended, starting at effective memory byte address ulhu $t1,label+100000
- Unaligned Load Halfword : Set $t1 to the 16 bits, zero-extended, starting at effective memory byte address ulhu $t1,($t2)
- Unaligned Load Halfword : Set $t1 to the 16 bits, zero-extended, starting at effective memory byte address ulhu $t1,100000($t2)
- Unaligned Load Halfword : Set $t1 to the 16 bits, zero-extended, starting at effective memory byte address ulhu $t1,label($t2)
- Unaligned Load Halfword : Set $t1 to the 16 bits, zero-extended, starting at effective memory byte address ulhu $t1,label+100000($t2)
.data
.align 2
data: .byte 0xFE, 0x12, 0x34, 0x56, 0x78, 0, 0, 0
.text
# Load initialized bytes; inspect $t0: 0x00003412 (13330 from little-endian bytes 0x12,0x34).
la $t1, data
ulhu $t0, 1($t1)