Previous 199869 Revisions Next

r22019 Friday 22nd March, 2013 at 07:13:40 UTC by Fabio Priuli
(MESS) megadriv.c: minor cleanup. nw.
[src/mame/machine]megadriv.c

trunk/src/mame/machine/megadriv.c
r22018r22019
655655   /* Is the z80 RESET line pulled? */
656656   if (state->m_genz80.z80_is_reset)
657657   {
658      machine.device("genesis_snd_z80" )->reset();
659      machine.device<cpu_device>( "genesis_snd_z80" )->suspend(SUSPEND_REASON_HALT, 1 );
660      machine.device("ymsnd" )->reset();
658      state->m_z80snd->reset();
659      state->m_z80snd->suspend(SUSPEND_REASON_HALT, 1);
660      machine.device("ymsnd")->reset();
661661   }
662662   else
663663   {
664664      /* Check if z80 has the bus */
665665      if (state->m_genz80.z80_has_bus)
666      {
667         machine.device<cpu_device>( "genesis_snd_z80" )->resume(SUSPEND_REASON_HALT );
668      }
666         state->m_z80snd->resume(SUSPEND_REASON_HALT);
669667      else
670      {
671         machine.device<cpu_device>( "genesis_snd_z80" )->suspend(SUSPEND_REASON_HALT, 1 );
672      }
668         state->m_z80snd->suspend(SUSPEND_REASON_HALT, 1);
673669   }
674670}
675671
r22018r22019
10121008// this comes from the VDP on lines 240 (on) 241 (off) and is connected to the z80 irq 0
10131009void genesis_vdp_sndirqline_callback_genesis_z80(running_machine &machine, bool state)
10141010{
1015   if (machine.device(":genesis_snd_z80") != NULL)
1011   md_base_state *md_state = machine.driver_data<md_base_state>();
1012   if (md_state->m_z80snd)
10161013   {
10171014      if (state == true)
10181015      {

Previous 199869 Revisions Next


© 1997-2024 The MAME Team