Mercurial > repos > blastem
comparison 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 |
comparison
equal
deleted
inserted
replaced
738:8972378e314f | 739:2317bdca03b4 |
---|---|
758 vdp_print_reg_explain(gen->vdp); | 758 vdp_print_reg_explain(gen->vdp); |
759 break; | 759 break; |
760 } | 760 } |
761 break; | 761 break; |
762 } | 762 } |
763 case 'y': { | |
764 genesis_context * gen = context->system; | |
765 //YM-2612 debug commands | |
766 switch(input_buf[1]) | |
767 { | |
768 case 'c': | |
769 if (input_buf[2] == ' ') { | |
770 int channel = atoi(input_buf+3)-1; | |
771 ym_print_channel_info(gen->ym, channel); | |
772 } else { | |
773 for (int i = 0; i < 6; i++) { | |
774 ym_print_channel_info(gen->ym, i); | |
775 } | |
776 } | |
777 } | |
778 break; | |
779 } | |
763 #ifndef NO_Z80 | 780 #ifndef NO_Z80 |
764 case 'z': { | 781 case 'z': { |
765 genesis_context * gen = context->system; | 782 genesis_context * gen = context->system; |
766 //Z80 debug commands | 783 //Z80 debug commands |
767 switch(input_buf[1]) | 784 switch(input_buf[1]) |