trunk/src/mame/machine/megadriv.c
r22018 | r22019 | |
655 | 655 | /* Is the z80 RESET line pulled? */ |
656 | 656 | if (state->m_genz80.z80_is_reset) |
657 | 657 | { |
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(); |
661 | 661 | } |
662 | 662 | else |
663 | 663 | { |
664 | 664 | /* Check if z80 has the bus */ |
665 | 665 | 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); |
669 | 667 | 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); |
673 | 669 | } |
674 | 670 | } |
675 | 671 | |
r22018 | r22019 | |
1012 | 1008 | // this comes from the VDP on lines 240 (on) 241 (off) and is connected to the z80 irq 0 |
1013 | 1009 | void genesis_vdp_sndirqline_callback_genesis_z80(running_machine &machine, bool state) |
1014 | 1010 | { |
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) |
1016 | 1013 | { |
1017 | 1014 | if (state == true) |
1018 | 1015 | { |