i64.const
Push an i64 constant.
core0x42
Syntax
i64.const
Stack Effect
[] -> [i64]Opcode
- Hex
0x42- Decimal
66- Bytes
[0x42]- Encoding
0x42 <value:i64-leb128>- Immediates
value:i64-leb128
- 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
;; i64.const example
)