i32.load8_s
i32.load8_s reads bytes from linear memory.
core0x2C
Syntax
i32.load8_s
Stack Effect
[address i32] -> [value]Opcode
- Hex
0x2C- Decimal
44- Bytes
[0x2c]- Encoding
0x2C <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.load8_s example
)