summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Pavone <pavone@retrodev.com>2014-02-06 10:04:31 -0800
committerMichael Pavone <pavone@retrodev.com>2014-02-06 10:04:31 -0800
commit54f208d55a523eeda7424f52f66d564d2d599d4a (patch)
tree70fcf18e3932102d3e5f200b32a232b8ca1cf706
parent5f26c018aef1071f85b7575c2937347295bf51d1 (diff)
Add a zp command to the 68K debugger to allow printing Z80 registers while in the 68K debugger
-rw-r--r--blastem.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/blastem.c b/blastem.c
index 489ce62..e50c79b 100644
--- a/blastem.c
+++ b/blastem.c
@@ -1513,6 +1513,13 @@ m68k_context * debugger(m68k_context * context, uint32_t address)
zbreakpoints = new_bp;
printf("Z80 Breakpoint %d set at %X\n", new_bp->index, value);
break;
+ case 'p':
+ param = find_param(input_buf);
+ if (!param) {
+ fputs("zp command requires a parameter\n", stderr);
+ break;
+ }
+ zdebugger_print(gen->z80, input_buf[2] == '/' ? input_buf[3] : 0, param);
}
break;
}