Mercurial > repos > blastem
comparison segacd.c @ 2122:bb478feccca2
Cut down on debug print spam
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Thu, 10 Mar 2022 22:07:45 -0800 |
parents | 76ea19e8b1a9 |
children | 50385ae2617b |
comparison
equal
deleted
inserted
replaced
2121:76ea19e8b1a9 | 2122:bb478feccca2 |
---|---|
877 { | 877 { |
878 case DST_MAIN_CPU: | 878 case DST_MAIN_CPU: |
879 case DST_SUB_CPU: | 879 case DST_SUB_CPU: |
880 cd->cdc_dst_low = 0; | 880 cd->cdc_dst_low = 0; |
881 cd->gate_array[GA_CDC_CTRL] |= BIT_DSR; | 881 cd->gate_array[GA_CDC_CTRL] |= BIT_DSR; |
882 printf("DSR set at %u, (transfer_end %u, dbcl %X, dbch %X)\n", cd->cdc.cycle, cd->cdc.transfer_end, cd->cdc.regs[2], cd->cdc.regs[3]); | |
883 break; | 882 break; |
884 case DST_PCM_RAM: | 883 case DST_PCM_RAM: |
885 dma_addr &= (1 << 13) - 1; | 884 dma_addr &= (1 << 13) - 1; |
886 rf5c164_run(&cd->pcm, cd->cdc.cycle); | 885 rf5c164_run(&cd->pcm, cd->cdc.cycle); |
887 rf5c164_write(&cd->pcm, 0x1000 | (dma_addr >> 1), value); | 886 rf5c164_write(&cd->pcm, 0x1000 | (dma_addr >> 1), value); |
1062 return cd->rom_mut[0x72/2]; | 1061 return cd->rom_mut[0x72/2]; |
1063 case GA_CDC_HOST_DATA: { | 1062 case GA_CDC_HOST_DATA: { |
1064 uint16_t dst = cd->gate_array[GA_CDC_CTRL] >> 8 & 0x7; | 1063 uint16_t dst = cd->gate_array[GA_CDC_CTRL] >> 8 & 0x7; |
1065 if (dst == DST_MAIN_CPU) { | 1064 if (dst == DST_MAIN_CPU) { |
1066 if (cd->gate_array[GA_CDC_CTRL] & BIT_DSR) { | 1065 if (cd->gate_array[GA_CDC_CTRL] & BIT_DSR) { |
1067 printf("DSR cleared at %u (%u)\n", scd_cycle, cd->cdc.cycle); | |
1068 cd->gate_array[GA_CDC_CTRL] &= ~BIT_DSR; | 1066 cd->gate_array[GA_CDC_CTRL] &= ~BIT_DSR; |
1069 lc8951_resume_transfer(&cd->cdc, scd_cycle); | 1067 lc8951_resume_transfer(&cd->cdc, scd_cycle); |
1070 } else { | 1068 } else { |
1071 printf("Read of CDC host data with DSR clear at %u\n", scd_cycle); | 1069 printf("Read of CDC host data with DSR clear at %u\n", scd_cycle); |
1072 } | 1070 } |