Initial reorg.
This is largely the same as #305, but updated for the current tree.
This commit is contained in:
11
crates/api/examples/memory.wat
Normal file
11
crates/api/examples/memory.wat
Normal file
@@ -0,0 +1,11 @@
|
||||
(module
|
||||
(memory (export "memory") 2 3)
|
||||
|
||||
(func (export "size") (result i32) (memory.size))
|
||||
(func (export "load") (param i32) (result i32) (i32.load8_s (local.get 0)))
|
||||
(func (export "store") (param i32 i32)
|
||||
(i32.store8 (local.get 0) (local.get 1))
|
||||
)
|
||||
|
||||
(data (i32.const 0x1000) "\01\02\03\04")
|
||||
)
|
||||
Reference in New Issue
Block a user