aboutsummaryrefslogtreecommitdiff
path: root/src/runtime.h
diff options
context:
space:
mode:
authorAryadev Chavali <aryadev@aryadevchavali.com>2023-10-21 23:31:48 +0100
committerAryadev Chavali <aryadev@aryadevchavali.com>2023-10-21 23:31:48 +0100
commitd2cdb211b2d15c3a15b15737645f2a68641f34ee (patch)
treef85d83d700e7cdffd57219a345abc3a687419712 /src/runtime.h
parent1c2de9a926924a5eaf5000b695fdb33ad5664da1 (diff)
downloadovm-d2cdb211b2d15c3a15b15737645f2a68641f34ee.tar.gz
ovm-d2cdb211b2d15c3a15b15737645f2a68641f34ee.tar.bz2
ovm-d2cdb211b2d15c3a15b15737645f2a68641f34ee.zip
Added vm_execute_all which executes an entire program
Handles OP_HALT
Diffstat (limited to 'src/runtime.h')
-rw-r--r--src/runtime.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/runtime.h b/src/runtime.h
index e588541..8ff0142 100644
--- a/src/runtime.h
+++ b/src/runtime.h
@@ -44,6 +44,7 @@ typedef struct
#define VM_REG_WORD(REG) ((REG))
void vm_execute(vm_t *);
+void vm_execute_all(vm_t *);
void vm_load_stack(vm_t *, byte *, size_t);
void vm_load_program(vm_t *, inst_t *, size_t);