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

Syntax

i64.add

Stack In

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

Stack Out

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

Example

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

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

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

;; The stack contains an i64 value of 143