Mercurial > repos > blastem
changeset 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 | b3738ee58195 |
children | 2c1679058727 |
files | blastem.c |
diffstat | 1 files changed, 7 insertions(+), 0 deletions(-) [+] |
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; }