From b93a4af4952906e544f35805720c6b547f1f062e Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Mon, 23 Oct 2023 01:45:18 +0100 Subject: 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. --- src/runtime.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/runtime.h') 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 *); -- cgit v1.2.3-13-gbd6f