summaryrefslogtreecommitdiff
path: root/test/hello_world.fromasm
blob: 51c2fd31d6a7961dcb312df2bbf202588b16f68b (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 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)
  )
 )
)