aboutsummaryrefslogtreecommitdiff
path: root/src/runtime.h
diff options
context:
space:
mode:
authorAryadev Chavali <aryadev@aryadevchavali.com>2023-10-23 01:45:18 +0100
committerAryadev Chavali <aryadev@aryadevchavali.com>2023-10-23 01:45:18 +0100
commitb93a4af4952906e544f35805720c6b547f1f062e (patch)
tree7a2f3762c6b024b52a77c67404fc9ec5990e3093 /src/runtime.h
parent2ef104f2358af14339ff632f3457bbb9dbf56d92 (diff)
downloadovm-b93a4af4952906e544f35805720c6b547f1f062e.tar.gz
ovm-b93a4af4952906e544f35805720c6b547f1f062e.tar.bz2
ovm-b93a4af4952906e544f35805720c6b547f1f062e.zip
Extracted code that performs a jump into its own routine
Checks if the operand given is a well defined program address, then performs the jump.
Diffstat (limited to 'src/runtime.h')
-rw-r--r--src/runtime.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/runtime.h b/src/runtime.h
index ab5abd7..83ffa17 100644
--- a/src/runtime.h
+++ b/src/runtime.h
@@ -71,6 +71,8 @@ void vm_print_program(vm_t *, FILE *);
void vm_print_all(vm_t *, FILE *);
// Execution routines
+err_t vm_jump(vm_t *, word);
+
err_t vm_pop_byte(vm_t *, data_t *);
err_t vm_pop_hword(vm_t *, data_t *);
err_t vm_pop_word(vm_t *, data_t *);