summaryrefslogtreecommitdiff
diff options
context:
space:
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++) {