Previous 15994 Revisions Next

r12299 Friday 22nd July, 2011 at 01:01:20 UTC by Angelo Salese
Added DSP IRQ end, used by The King of Boxing
[src/mame/machine]scudsp.c

src/mame/machine/scudsp.c
r12298r12299
11/******************************************************************************************
2System Control Unit - DSP emulator version 0.06
2System Control Unit - DSP emulator version 0.07
33
44Written by Angelo Salese & Mariusz Wojcieszek
55
66Changelog:
7110722: Angelo Salese
8- Added DSP IRQ command, tested with "The King of Boxing"
9
710110527: Angelo Salese
811- Fixed incorrectly setted execute flag clearance, allows animation of the Sega Saturn
912  splash screen;
r12298r12299
729732   }
730733}
731734
735static 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
732747static void dsp_end( address_space *dmaspace )
733748{
734749   saturn_state *state = dmaspace->machine().driver_data<saturn_state>();
r12298r12299
736751   if(opcode & 0x08000000)
737752   {
738753      /*ENDI*/
739      EF_1;
754      dmaspace->machine().scheduler().timer_set(attotime::from_usec(300), FUNC(dsp_ended));
740755   }
741756
742757   EXF_0; /* END / ENDI */

Previous 15994 Revisions Next


© 1998-2018 The MESS Team