src/mame/machine/scudsp.c
| r12298 | r12299 | |
| 1 | 1 | /****************************************************************************************** |
| 2 | | System Control Unit - DSP emulator version 0.06 |
| 2 | System Control Unit - DSP emulator version 0.07 |
| 3 | 3 | |
| 4 | 4 | Written by Angelo Salese & Mariusz Wojcieszek |
| 5 | 5 | |
| 6 | 6 | Changelog: |
| 7 | 110722: Angelo Salese |
| 8 | - Added DSP IRQ command, tested with "The King of Boxing" |
| 9 | |
| 7 | 10 | 110527: Angelo Salese |
| 8 | 11 | - Fixed incorrectly setted execute flag clearance, allows animation of the Sega Saturn |
| 9 | 12 | splash screen; |
| r12298 | r12299 | |
| 729 | 732 | } |
| 730 | 733 | } |
| 731 | 734 | |
| 735 | static TIMER_CALLBACK( dsp_ended ) |
| 736 | { |
| 737 | saturn_state *state = machine.driver_data<saturn_state>(); |
| 738 | |
| 739 | if(!(state->m_scu.ism & IRQ_DSP_END)) |
| 740 | device_set_input_line_and_vector(state->m_maincpu, 0xa, HOLD_LINE, 0x45); |
| 741 | else |
| 742 | state->m_scu.ist |= (IRQ_DSP_END); |
| 743 | |
| 744 | EF_1; |
| 745 | } |
| 746 | |
| 732 | 747 | static void dsp_end( address_space *dmaspace ) |
| 733 | 748 | { |
| 734 | 749 | saturn_state *state = dmaspace->machine().driver_data<saturn_state>(); |
| r12298 | r12299 | |
| 736 | 751 | if(opcode & 0x08000000) |
| 737 | 752 | { |
| 738 | 753 | /*ENDI*/ |
| 739 | | EF_1; |
| 754 | dmaspace->machine().scheduler().timer_set(attotime::from_usec(300), FUNC(dsp_ended)); |
| 740 | 755 | } |
| 741 | 756 | |
| 742 | 757 | EXF_0; /* END / ENDI */ |