Nuxt/examples/experimental/wasm/server/wasm/sum.wat
Clément Ollivier 1a7b570c82
docs(examples): add examples to docs (#3966)
Co-authored-by: Pooya Parsa <pyapar@gmail.com>
2022-03-30 17:59:28 +02:00

8 lines
245 B
Plaintext

;; https://developer.mozilla.org/en-US/docs/WebAssembly/Understanding_the_text_format
;; https://webassembly.github.io/wabt/demo/wat2wasm/
(module
(func (export "sum") (param i32 i32) (result i32)
local.get 0
local.get 1
i32.add))