git ssb

0+

wanderer🌟 / js-primea-wasm-container



Tree: 6f04f369bd35cff2e85467647d79bd647daed87a

Files: 6f04f369bd35cff2e85467647d79bd647daed87a / tests / wast / readMem.wast

568 bytesRaw
1(module
2 (type $FUNCSIG$ii (func (param i32) (result i32)))
3 (type $FUNCSIG$vii (func (param i32 i32)))
4 (import "test" "equals" (func $equals (param i32 i32)))
5 (import "env" "readMem" (func $readMem (param i32) (result i32)))
6 (table 0 anyfunc)
7 (memory $0 1)
8 (data (i32.const 16) "asm\01\00")
9 (export "memory" (memory $0))
10 (export "onCreation" (func $onCreation))
11 (func $onCreation (param $0 i32) (result i32)
12 (local $1 i32)
13 (call $equals
14 (call $readMem
15 (i32.const 16)
16 )
17 (i32.const 97)
18 )
19 (get_local $1)
20 )
21)
22

Built with git-ssb-web