diff options
Diffstat (limited to 'vm')
-rw-r--r-- | vm/runtime.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/vm/runtime.c b/vm/runtime.c index 72785c5..7b712f2 100644 --- a/vm/runtime.c +++ b/vm/runtime.c @@ -272,6 +272,8 @@ err_t vm_execute_all(vm_t *vm) { struct Program *program = &vm->program; err_t err = ERR_OK; + // Setup the initial address according to the program + program->ptr = program->data->header.start_address; #if VERBOSE >= 1 size_t cycles = 0; #endif |