i32.sub
i32 sub arithmetic/bit operation.
core0x6B
Syntax
i32.sub
Stack Effect
[i32, i32] -> [i32]Opcode
- Hex
0x6B- Decimal
107- Bytes
[0x6b]- Encoding
0x6B- Category
- numeric
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.sub example
)