diff options
-rw-r--r-- | src/main.c | 1 | ||||
-rw-r--r-- | src/runtime.c | 6 |
2 files changed, 3 insertions, 4 deletions
@@ -35,7 +35,6 @@ int interpret_bytecode(const char *filepath) { const char *error_str = err_as_cstr(err); fprintf(stderr, "[ERROR]: %s\n", error_str); - fprintf(stderr, "\t VM State:\n"); vm_print_all(&vm, stderr); ret = 255 - err; } diff --git a/src/runtime.c b/src/runtime.c index 32350e1..6308eb9 100644 --- a/src/runtime.c +++ b/src/runtime.c @@ -353,15 +353,15 @@ void vm_print_all(vm_t *vm, FILE *fp) fputs("----------------------------------------------------------------------" "----------\n", fp); - vm_print_registers(vm, fp); + vm_print_program(vm, fp); fputs("----------------------------------------------------------------------" "----------\n", fp); - vm_print_stack(vm, fp); + vm_print_registers(vm, fp); fputs("----------------------------------------------------------------------" "----------\n", fp); - vm_print_program(vm, fp); + vm_print_stack(vm, fp); fputs("----------------------------------------------------------------------" "----------\n", fp); |