# HG changeset patch # User Michael Pavone # Date 1391709871 28800 # Node ID a277de8c1a183e3512571b9413bdfe4cbb5f5c0f # Parent b3738ee58195a27208152c46d6244581e707f96a Add a zp command to the 68K debugger to allow printing Z80 registers while in the 68K debugger diff -r b3738ee58195 -r a277de8c1a18 blastem.c --- a/blastem.c Thu Feb 06 10:03:59 2014 -0800 +++ b/blastem.c Thu Feb 06 10:04:31 2014 -0800 @@ -1513,6 +1513,13 @@ 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; }