diff options
author | Michael Pavone <pavone@retrodev.com> | 2017-01-04 20:43:22 -0800 |
---|---|---|
committer | Michael Pavone <pavone@retrodev.com> | 2017-01-04 20:43:22 -0800 |
commit | e96ca2a17dc298977d31768226090bc22b0baa5c (patch) | |
tree | 7a81bcdb53c31e95da82637ed313015c5f94cd16 /debug.c | |
parent | 7efc7891c5d5c9bc1daf954510f90e79b6db5c75 (diff) |
Don't lock up CPU if performing a read with writes configured when in PBC mode. Allow access to VDP debug commands from Z80 debugger in PBC mode. Handle Mode 4 in VDP debug print functions
Diffstat (limited to 'debug.c')
-rw-r--r-- | debug.c | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -523,7 +523,12 @@ z80_context * zdebugger(z80_context * context, uint16_t address) break; } default: - fprintf(stderr, "Unrecognized debugger command %s\n", input_buf); + if ( + !context->options->gen.debug_cmd_handler + || !context->options->gen.debug_cmd_handler(&system->header, input_buf) + ) { + fprintf(stderr, "Unrecognized debugger command %s\n", input_buf); + } break; } } |