i32.load
i32.load reads bytes from linear memory.
core0x28
Syntax
i32.load
Stack Effect
[address i32] -> [value]Opcode
- Hex
0x28- Decimal
40- Bytes
[0x28]- Encoding
0x28 <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
;; i32.load example
)