src/mess/machine/pce.c
| r14809 | r14810 | |
| 386 | 386 | memory_set_bankptr( machine, "bank10", pce_cd.bram + ( pce_cd.bram_locked ? PCE_BRAM_SIZE : 0 ) ); |
| 387 | 387 | } |
| 388 | 388 | |
| 389 | | static void adpcm_stop(running_machine &machine) |
| 389 | static void adpcm_stop(running_machine &machine, UINT8 irq_flag) |
| 390 | 390 | { |
| 391 | 391 | pce_state *state = machine.driver_data<pce_state>(); |
| 392 | 392 | pce_cd_t &pce_cd = state->m_cd; |
| 393 | 393 | pce_cd.regs[0x0c] |= PCE_CD_ADPCM_STOP_FLAG; |
| 394 | 394 | pce_cd.regs[0x0c] &= ~PCE_CD_ADPCM_PLAY_FLAG; |
| 395 | 395 | //pce_cd.regs[0x03] = (pce_cd.regs[0x03] & ~0x0c) | (PCE_CD_SAMPLE_STOP_PLAY); |
| 396 | | pce_cd_set_irq_line( machine, PCE_CD_IRQ_SAMPLE_FULL_PLAY, ASSERT_LINE ); |
| 396 | if(irq_flag) |
| 397 | pce_cd_set_irq_line( machine, PCE_CD_IRQ_SAMPLE_FULL_PLAY, ASSERT_LINE ); |
| 397 | 398 | pce_cd.regs[0x0d] &= ~0x60; |
| 398 | 399 | pce_cd.msm_idle = 1; |
| 399 | 400 | } |
| r14809 | r14810 | |
| 446 | 447 | { |
| 447 | 448 | //pce_cd_set_irq_line( device->machine(), PCE_CD_IRQ_SAMPLE_HALF_PLAY, CLEAR_LINE ); |
| 448 | 449 | //pce_cd_set_irq_line( device->machine(), PCE_CD_IRQ_SAMPLE_FULL_PLAY, CLEAR_LINE ); |
| 449 | | adpcm_stop(device->machine()); |
| 450 | adpcm_stop(device->machine(),1); |
| 450 | 451 | msm5205_reset_w(device, 1); |
| 451 | 452 | } |
| 452 | 453 | } |
| r14809 | r14810 | |
| 1408 | 1409 | pce_cd.msm_end_addr = 0; |
| 1409 | 1410 | pce_cd.msm_half_addr = 0; |
| 1410 | 1411 | pce_cd.msm_nibble = 0; |
| 1411 | | adpcm_stop(space->machine()); |
| 1412 | adpcm_stop(space->machine(), 0); |
| 1412 | 1413 | msm5205_reset_w( space->machine().device( "msm5205"), 1 ); |
| 1413 | 1414 | } |
| 1414 | 1415 | |
| r14809 | r14810 | |
| 1428 | 1429 | else if ( (data & 0x40) == 0 ) |
| 1429 | 1430 | { |
| 1430 | 1431 | /* used by Buster Bros to cancel an in-flight sample */ |
| 1431 | | adpcm_stop(space->machine()); |
| 1432 | adpcm_stop(space->machine(), 0); |
| 1432 | 1433 | msm5205_reset_w( space->machine().device( "msm5205"), 1 ); |
| 1433 | 1434 | } |
| 1434 | 1435 | |