virtual-machine 0.0.25 → 0.0.26

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/build/index.d.ts CHANGED
@@ -63,6 +63,13 @@ declare class WasmVm {
63
63
  * Push an input byte to the UART.
64
64
  */
65
65
  input(byte: number): void;
66
+ /**
67
+ * Execute up to N instructions in a batch.
68
+ * Returns the number of instructions actually executed.
69
+ * This is more efficient than calling step() N times due to reduced
70
+ * JS-WASM boundary crossings.
71
+ */
72
+ step_n(count: number): number;
66
73
  /**
67
74
  * Get the halt code if the VM has halted.
68
75
  * Code 0x5555 typically means successful shutdown (PASS).
@@ -97,12 +104,13 @@ interface InitOutput {
97
104
  readonly wasmvm_print_banner: (a: number) => void;
98
105
  readonly wasmvm_print_status: (a: number, b: number, c: number) => void;
99
106
  readonly wasmvm_step: (a: number) => number;
107
+ readonly wasmvm_step_n: (a: number, b: number) => number;
100
108
  readonly wasmvm_uart_output_pending: (a: number) => number;
101
- readonly wasm_bindgen__convert__closures_____invoke__hcb213e7f52b31168: (a: number, b: number) => void;
102
- readonly wasm_bindgen__closure__destroy__ha64c5484eb0bd270: (a: number, b: number) => void;
103
109
  readonly wasm_bindgen__convert__closures_____invoke__h6709295d3f31b919: (a: number, b: number, c: any) => void;
104
110
  readonly wasm_bindgen__closure__destroy__hb099e2ae98169675: (a: number, b: number) => void;
105
- readonly wasm_bindgen__convert__closures_____invoke__hb7783920f48cbf0e: (a: number, b: number) => void;
111
+ readonly wasm_bindgen__convert__closures_____invoke__h7db8350a65138a75: (a: number, b: number) => void;
112
+ readonly wasm_bindgen__closure__destroy__h31964876cb87df28: (a: number, b: number) => void;
113
+ readonly wasm_bindgen__convert__closures_____invoke__h214e37a833ce8d11: (a: number, b: number) => void;
106
114
  readonly __wbindgen_malloc: (a: number, b: number) => number;
107
115
  readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
108
116
  readonly __wbindgen_exn_store: (a: number) => void;