From 54f208d55a523eeda7424f52f66d564d2d599d4a Mon Sep 17 00:00:00 2001 From: Michael Pavone Date: Thu, 6 Feb 2014 10:04:31 -0800 Subject: Add a zp command to the 68K debugger to allow printing Z80 registers while in the 68K debugger --- blastem.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'blastem.c') 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; } -- cgit v1.2.3