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.
This commit is contained in:
2023-10-23 01:45:18 +01:00
parent 2ef104f235
commit b93a4af495
2 changed files with 13 additions and 6 deletions

View File

@@ -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 *);