mirror of
https://github.com/pezkuwichain/wasm-instrument.git
synced 2026-05-30 10:01:07 +00:00
21 lines
293 B
WebAssembly Text Format
21 lines
293 B
WebAssembly Text Format
(module
|
|
(func $add_locals (param $x i32) (param $y i32) (result i32)
|
|
(local $t i32)
|
|
|
|
;; This looks
|
|
get_local $x
|
|
get_local $y
|
|
call $add
|
|
set_local $t
|
|
|
|
get_local $t
|
|
)
|
|
|
|
(func $add (param $x i32) (param $y i32) (result i32)
|
|
(i32.add
|
|
(get_local $x)
|
|
(get_local $y)
|
|
)
|
|
)
|
|
)
|