i32.const
Push an i32 value onto the stack.

Syntax

i32.const value

Parameters

value
An i32 literal value. Can be written as a decimal number or using the 0x00 hexadecimal notation.

Stack In

NONE

Stack Out

i32 The parameter value.

Example

;; Push the i32 value 42 onto the stack
i32.const 42

;; Push the i32 value 101 in hex onto the stack
i32.const 0x65

;; Pop the two i32 values off the stack, add them together and
;; push the result back onto the stack
i32.add