From e96ca2a17dc298977d31768226090bc22b0baa5c Mon Sep 17 00:00:00 2001 From: Michael Pavone Date: Wed, 4 Jan 2017 20:43:22 -0800 Subject: 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 --- debug.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'debug.c') diff --git a/debug.c b/debug.c index 4c7dcd9..d114531 100644 --- a/debug.c +++ b/debug.c @@ -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; } } -- cgit v1.2.3