diff options
author | Michael Pavone <pavone@retrodev.com> | 2014-02-06 10:04:31 -0800 |
---|---|---|
committer | Michael Pavone <pavone@retrodev.com> | 2014-02-06 10:04:31 -0800 |
commit | 54f208d55a523eeda7424f52f66d564d2d599d4a (patch) | |
tree | 70fcf18e3932102d3e5f200b32a232b8ca1cf706 | |
parent | 5f26c018aef1071f85b7575c2937347295bf51d1 (diff) |
Add a zp command to the 68K debugger to allow printing Z80 registers while in the 68K debugger
-rw-r--r-- | blastem.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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; } |