i32.store
i32.store writes bytes into linear memory.
core0x36
Syntax
i32.store
Stack Effect
[address i32, value] -> []Opcode
- Hex
0x36- Decimal
54- Bytes
[0x36]- Encoding
0x36 <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.store example
)