diff options
Diffstat (limited to 'test/hello_world.fromasm')
-rw-r--r-- | test/hello_world.fromasm | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/test/hello_world.fromasm b/test/hello_world.fromasm index 66f728c52..23aba7d9d 100644 --- a/test/hello_world.fromasm +++ b/test/hello_world.fromasm @@ -1,7 +1,11 @@ (module (memory 256 256) - (export "memory" memory) - (export "add" $add) + (data (get_global $memoryBase) "hello_world.asm.js") + (import "env" "memory" (memory $memory)) + (import "env" "table" (table $table)) + (import "env" "memoryBase" (global $memoryBase i32)) + (import "env" "tableBase" (global $tableBase i32)) + (export "add" (func $add)) (func $add (param $0 i32) (param $1 i32) (result i32) (i32.add (get_local $0) |