diff options
author | mrb0nk500 <b0nk@b0nk.xyz> | 2021-05-09 12:18:32 -0400 |
---|---|---|
committer | mrb0nk500 <b0nk@b0nk.xyz> | 2021-05-09 12:18:32 -0400 |
commit | e9001152cdb22751ccd27d73f3cbfcb921f9fbe4 (patch) | |
tree | fde48c92ca102c7c5e245488afd12c27a3dc3b70 | |
parent | eb679e0750798c0fcba06d10d8b003532d931644 (diff) |
Add scr_ptr to the list of outputted addresses when in
debuging mode.
-rw-r--r-- | disasm.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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++) { |