i32.add
Pops two i32 values off the stack, adds them together, and then pushes the result back on to the stack.
$result = $first + $second

Syntax

i32.add

Stack In

i32 The first value to be added.
i32 The second value to be added.

Stack Out

i32 The result of adding the first and second values together.

Example

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

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

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

;; The stack contains an i32 value of 143