diff options
author | Michael Pavone <pavone@retrodev.com> | 2015-05-27 20:53:21 -0700 |
---|---|---|
committer | Michael Pavone <pavone@retrodev.com> | 2015-05-27 20:53:21 -0700 |
commit | 38d85c1c95d0a4152a480baff4974622977dcfce (patch) | |
tree | 362d27b29a7ad3dacff97c9ee5dcbf960e37c1e4 /debug.c | |
parent | 6817ef558d165b50a9b08a337dd93c4f1f46304e (diff) |
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
Diffstat (limited to 'debug.c')
-rw-r--r-- | debug.c | 17 |
1 files changed, 17 insertions, 0 deletions
@@ -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; |