diff debug.c @ 739:2317bdca03b4

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
author Michael Pavone <pavone@retrodev.com>
date Wed, 27 May 2015 20:53:21 -0700
parents 7178d750efbd
children 85c98a222fea
line wrap: on
line diff
--- a/debug.c	Tue May 26 22:22:30 2015 -0700
+++ b/debug.c	Wed May 27 20:53:21 2015 -0700
@@ -760,6 +760,23 @@
 				}
 				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;