Added a routine to cleanup resources allocated to the VM

This means the stack should be heap allocated, which makes sense as
beyond 1KB one should really be using the heap rather than the stack.
This commit is contained in:
2023-11-01 17:52:15 +00:00
parent 7a1129d80f
commit 90d901345a
2 changed files with 8 additions and 0 deletions

View File

@@ -58,6 +58,7 @@ err_t vm_execute_all(vm_t *);
void vm_load_stack(vm_t *, byte *, size_t);
void vm_load_program(vm_t *, inst_t *, size_t);
void vm_load_registers(vm_t *, registers_t);
void vm_stop(vm_t *);
// Print routines
#define VM_PRINT_PROGRAM_EXCERPT 5