ajarcomputers/test.wat
Linnea Gräf 88fad02b96
Add wasm
2024-07-21 04:42:02 +02:00

14 lines
No EOL
303 B
Text

(module
(import "computer" "setSize" (func $setSize (param $rows i32) (param $cols i32)))
(func $add (param $left i32) (param $right i32) (result i32)
i32.const 10
i32.const 12
call $setSize
local.get $left
local.get $right
i32.add
i32.const 10
i32.add
)
(export "add" (func $add))
)