aboutsummaryrefslogtreecommitdiffstats
path: root/src/debug.c
diff options
context:
space:
mode:
authorBad Diode <bd@badd10de.dev>2023-08-31 12:17:09 +0200
committerBad Diode <bd@badd10de.dev>2023-08-31 12:17:09 +0200
commite7c567fcb695722b9e88866bf4216ff425daac9a (patch)
treefaae4937d2f46483eeed04eb4fee2e002e2b0ba9 /src/debug.c
parent4f745d03e1717120e1c7502a9033ee8b95ab462f (diff)
downloaduxngba-e7c567fcb695722b9e88866bf4216ff425daac9a.tar.gz
uxngba-e7c567fcb695722b9e88866bf4216ff425daac9a.zip
Fix issue with bank switching
Diffstat (limited to 'src/debug.c')
-rw-r--r--src/debug.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/debug.c b/src/debug.c
index 17c1c73..fe3077f 100644
--- a/src/debug.c
+++ b/src/debug.c
@@ -9,13 +9,17 @@ typedef enum DebugFlags {
9 9
10void 10void
11print_debug_info(u8 flags) { 11print_debug_info(u8 flags) {
12 txt_position(0, 0);
12 if (flags & SHOW_ROM) { 13 if (flags & SHOW_ROM) {
13 txt_printf("\nROM"); 14 txt_printf("\nROM");
14 for (size_t i = 0; i < 128; i++) { 15 for (size_t i = 0; i < 128; i++) {
15 if (i % 8 == 0) { 16 if (i % 8 == 0) {
16 txt_printf("\n"); 17 txt_printf("\n");
17 } 18 }
18 txt_printf("%02x ", uxn_ram[i + PAGE_PROGRAM]); 19 if (i % 2 == 0) {
20 txt_printf(" ");
21 }
22 txt_printf("%02x", uxn_ram[i + PAGE_PROGRAM]);
19 } 23 }
20 txt_printf("\n"); 24 txt_printf("\n");
21 } 25 }