a31eb59678
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
15 lines
600 B
WebAssembly Text Format
15 lines
600 B
WebAssembly Text Format
(module
|
|
(memory (export "memory") 32)
|
|
(global $bump (mut i32) (i32.const 1048576))
|
|
(func (export "ns_alloc") (param $n i32) (result i32)
|
|
(local $p i32)
|
|
(local.set $p (global.get $bump))
|
|
(global.set $bump (i32.add (local.get $p) (local.get $n)))
|
|
(local.get $p))
|
|
(func (export "ns_free") (param i32) (param i32))
|
|
(func (export "ns_abi_version") (result i32) (i32.const 1))
|
|
(func (export "ns_on_load") (result i32) (i32.const 0))
|
|
(func (export "ns_on_unload") (result i32) (i32.const 0))
|
|
(func (export "ns_on_event") (param i32) (param i32) (result i32) (i32.const 0))
|
|
)
|