i64.load8_u
i64.load8_u reads bytes from linear memory.
core0x31
Syntax
i64.load8_u
Stack Effect
[address i32] -> [value]Opcode
- Hex
0x31- Decimal
49- Bytes
[0x31]- Encoding
0x31 <memarg:memarg>- Immediates
memarg:memarg— alignment hint and offset (two u32 LEB128 values)
- Category
- memory
Browser Support
Core WebAssembly instruction.
Validation Rules
- Operands and result types must match the instruction signature.
- The instruction must appear in a valid structured control context.
Common Mistakes
- Using the instruction with the wrong operand type.
- Forgetting that WAT validation is stack-typed.
(func $example
;; i64.load8_u example
)