From 38d85c1c95d0a4152a480baff4974622977dcfce Mon Sep 17 00:00:00 2001 From: Michael Pavone Date: Wed, 27 May 2015 20:53:21 -0700 Subject: Add a basic YM-2612 command to the debugger. Fix negative detune values and get the correct precision for the multiplication step of phase inc calculation --- debug.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'debug.c') diff --git a/debug.c b/debug.c index ac5c34d..e121277 100644 --- a/debug.c +++ b/debug.c @@ -760,6 +760,23 @@ m68k_context * debugger(m68k_context * context, uint32_t address) } break; } + case 'y': { + genesis_context * gen = context->system; + //YM-2612 debug commands + switch(input_buf[1]) + { + case 'c': + if (input_buf[2] == ' ') { + int channel = atoi(input_buf+3)-1; + ym_print_channel_info(gen->ym, channel); + } else { + for (int i = 0; i < 6; i++) { + ym_print_channel_info(gen->ym, i); + } + } + } + break; + } #ifndef NO_Z80 case 'z': { genesis_context * gen = context->system; -- cgit v1.2.3