summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormrb0nk500 <b0nk@b0nk.xyz>2021-05-09 12:18:32 -0400
committermrb0nk500 <b0nk@b0nk.xyz>2021-05-09 12:18:32 -0400
commite9001152cdb22751ccd27d73f3cbfcb921f9fbe4 (patch)
treefde48c92ca102c7c5e245488afd12c27a3dc3b70
parenteb679e0750798c0fcba06d10d8b003532d931644 (diff)
Add scr_ptr to the list of outputted addresses when in
debuging mode.
-rw-r--r--disasm.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/disasm.c b/disasm.c
index 9e37646..586d18b 100644
--- a/disasm.c
+++ b/disasm.c
@@ -60,7 +60,9 @@ static void sub_dbg(struct sux *cpu, WINDOW *w, uint64_t address, uint64_t *orth
tmpad += 8;
wmove(w, 1, 0);
wclrtoeol(w);
- wprintw(w, "scr_row: %02u, scr_col: %02u, scr_str: %02u, scr_end: %02u", addr[0], addr[1], addr[2], addr[3]);
+ ptr.u64 = 0;
+ ptr.u64 = read_value(cpu, 0, 4, 1, 0, 0);
+ wprintw(w, "scr_row: %02u, scr_col: %02u, scr_str: %02u, scr_end: %02u, scr_ptr: $%04X", addr[0], addr[1], addr[2], addr[3], ptr.u16[0]);
wmove(w, 2, 0);
wprintw(w, "bitabl: ");
for (uint8_t i = 0; i < 16; i++) {