call
Call a function by direct index.
core0x10
Syntax
call
Stack Effect
params -> resultsOpcode
- Hex
0x10- Decimal
16- Bytes
[0x10]- Encoding
0x10 <funcidx:u32-leb128>- Immediates
funcidx:u32-leb128
- Category
- control
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
;; call example
)