14 lines
No EOL
303 B
Text
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))
|
|
) |