ajarcomputers/test.wat

14 lines
303 B
Text
Raw Normal View History

2024-07-21 04:42:02 +02:00
(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))
)