From 00f3b3bf2111cc27543958b5c9fdae23cba420c9 Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Mon, 23 Oct 2023 00:48:53 +0100 Subject: Rearrange what is printed in vm_print_all First the program, then the registers then the stack. --- src/runtime.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/runtime.c') 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); -- cgit v1.2.3-13-gbd6f