aboutsummaryrefslogtreecommitdiff
path: root/src/runtime.c
diff options
context:
space:
mode:
authorAryadev Chavali <aryadev@aryadevchavali.com>2023-10-23 00:48:53 +0100
committerAryadev Chavali <aryadev@aryadevchavali.com>2023-10-23 00:49:59 +0100
commit00f3b3bf2111cc27543958b5c9fdae23cba420c9 (patch)
tree2ff8387cea3cb87630b935b300bf74751f216836 /src/runtime.c
parentd0ee1f3b1fb60a6116a15c7c204345601adc2410 (diff)
downloadovm-00f3b3bf2111cc27543958b5c9fdae23cba420c9.tar.gz
ovm-00f3b3bf2111cc27543958b5c9fdae23cba420c9.tar.bz2
ovm-00f3b3bf2111cc27543958b5c9fdae23cba420c9.zip
Rearrange what is printed in vm_print_all
First the program, then the registers then the stack.
Diffstat (limited to 'src/runtime.c')
-rw-r--r--src/runtime.c6
1 files changed, 3 insertions, 3 deletions
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);