From 722d5509178fa5bdaa488fbbd9196f21377f8775 Mon Sep 17 00:00:00 2001 From: Ben Bridle Date: Mon, 18 Nov 2024 14:57:19 +1300 Subject: Initial commit --- arm9/source/main_debug.c | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 arm9/source/main_debug.c (limited to 'arm9/source/main_debug.c') diff --git a/arm9/source/main_debug.c b/arm9/source/main_debug.c new file mode 100644 index 0000000..eae5192 --- /dev/null +++ b/arm9/source/main_debug.c @@ -0,0 +1,24 @@ +#include +#include "core.h" + +void debug_stacks(Bedrock *br) { + u8 i; + printf("\nP:0x%04x I:0x%02x", PC, MEM[PC]); + printf("\nW:"); + for (i=0; i