Previous 15994 Revisions Next

r9197 Monday 20th September, 2010 at 08:13:13 UTC by Angelo Salese
[PCE]: Fixed ADPCM DMA stop behaviour, fixes several Arcade Card games gfxs / booting
[src/mess/machine]pce.c

src/mess/machine/pce.c
r9196r9197
10281028         pce_cd.scsi_MSG = pce_cd.scsi_REQ = pce_cd.scsi_ATN = 0;
10291029         pce_cd.cd_motor_on = 0;
10301030         pce_cd.selected = 0;
1031         pce_cd.cdda_status = PCE_CD_CDDA_OFF;
1032         cdda_stop_audio( machine->device( "cdda" ) );
1033         timer_adjust_oneshot(pce_cd.adpcm_dma_timer, attotime_never, 0); // stop ADPCM DMA here
10311034      }
10321035      pce_cd.scsi_last_RST = pce_cd.scsi_RST;
10331036   }
r9196r9197
13711374      pce_cd.scsi_SEL = 1;
13721375      pce_cd_update(space->machine);
13731376      pce_cd.scsi_SEL = 0;
1377      timer_adjust_oneshot(pce_cd.adpcm_dma_timer, attotime_never, 0); // stop ADPCM DMA here
13741378      break;
13751379   case 0x01:   /* CDC command / status / data */
13761380      break;
r9196r9197
14071411      pce_cd_set_adpcm_ram_byte(space->machine, data);
14081412      break;
14091413   case 0x0B:   /* ADPCM DMA control */
1410      if ( ! ( pce_cd.regs[0x0B] & 0x03 ) && ( data & 0x03 ) )
1414      if ( data & 0x03 )
14111415      {
14121416         /* Start CD to ADPCM transfer */
14131417         timer_adjust_periodic(pce_cd.adpcm_dma_timer, ATTOTIME_IN_HZ( PCE_CD_DATA_FRAMES_PER_SECOND * 2048 ), 0, ATTOTIME_IN_HZ( PCE_CD_DATA_FRAMES_PER_SECOND * 2048 ) );
14141418         pce_cd.regs[0x0c] |= 4;
14151419      }
1416      if ( ( pce_cd.regs[0x0B] & 0x03 ) && ! ( data & 0x03 ) )
1417      {
1418         /* Stop CD to ADPCM transfer (?) */
1419         timer_adjust_oneshot(pce_cd.adpcm_dma_timer, attotime_never, 0);
1420      }
14211420      break;
14221421   case 0x0C:   /* ADPCM status */
14231422      break;

Previous 15994 Revisions Next


© 1998-2018 The MESS Team