Mercurial > repos > blastem
diff blastem.c @ 510:a277de8c1a18
Add a zp command to the 68K debugger to allow printing Z80 registers while in the 68K debugger
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Thu, 06 Feb 2014 10:04:31 -0800 |
parents | b976c6d6e5fb |
children | 1495179d6737 |
line wrap: on
line diff
--- 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; }