summaryrefslogtreecommitdiff
path: root/test/hello_world.fromasm
blob: f88f3e94a6e409105a95c4f16da4be846cb22c49 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
(module
  (import "env" "memory" (memory $0 256 256))
  (import "env" "table" (table 0 anyfunc))
  (import "env" "memoryBase" (global $memoryBase i32))
  (import "env" "tableBase" (global $tableBase i32))
  (data (get_global $memoryBase) "hello_world.asm.js")
  (export "add" (func $add))
  (func $add (param $0 i32) (param $1 i32) (result i32)
    (i32.add
      (get_local $0)
      (get_local $1)
    )
  )
)