Previous 199869 Revisions Next

r31061 Saturday 21st June, 2014 at 16:09:21 UTC by hap
partial revert of r31054: daisy chain config is on TMPZ84C011 external pins
[src/emu/cpu/z80]tmpz84c011.c z80daisy.c
[src/mame/drivers]csplayh5.c kenseim.c nbmj9195.c niyanpai.c

trunk/src/mame/drivers/niyanpai.c
r31060r31061
760760   m_tmp68301->external_interrupt_0();
761761}
762762
763static const z80_daisy_config daisy_chain_sound[] =
764{
765   { "audiocpu:ctc" },
766   { NULL }
767};
763768
764769static MACHINE_CONFIG_START( niyanpai, niyanpai_state )
765770
r31060r31061
773778   MCFG_TMP68301_OUT_PARALLEL_CB(WRITE16(niyanpai_state, tmp68301_parallel_port_w))
774779
775780   MCFG_CPU_ADD("audiocpu", TMPZ84C011, 8000000) /* TMPZ84C011, 8.00 MHz */
781   MCFG_CPU_CONFIG(daisy_chain_sound)
776782   MCFG_CPU_PROGRAM_MAP(niyanpai_sound_map)
777783   MCFG_CPU_IO_MAP(niyanpai_sound_io_map)
778784   MCFG_TMPZ84C011_PORTD_READ_CB(READ8(niyanpai_state, cpu_portd_r))
trunk/src/mame/drivers/kenseim.c
r31060r31061
464464
465465
466466
467static const z80_daisy_config daisy_chain_gamecpu[] =
468{
469   { "gamecpu:ctc" },
470   { NULL }
471};
467472
468473static MACHINE_CONFIG_DERIVED_CLASS( kenseim, cps1_12MHz, kenseim_state )
469474
470475   /* basic machine hardware */
471476   MCFG_CPU_ADD("gamecpu", TMPZ84C011, XTAL_16MHz/2) // tmpz84c011-8
477   MCFG_CPU_CONFIG(daisy_chain_gamecpu)
472478   MCFG_CPU_PROGRAM_MAP(kenseim_map)
473479   MCFG_CPU_IO_MAP(kenseim_io_map)
474480   MCFG_TMPZ84C011_PORTC_WRITE_CB(WRITE8(kenseim_state, cpu_portc_w))
trunk/src/mame/drivers/nbmj9195.c
r31060r31061
27782778INPUT_PORTS_END
27792779
27802780
2781static const z80_daisy_config daisy_chain_main[] =
2782{
2783   { "maincpu:ctc" },
2784   { NULL }
2785};
2786
2787static const z80_daisy_config daisy_chain_sound[] =
2788{
2789   { "audiocpu:ctc" },
2790   { NULL }
2791};
2792
2793
27812794// the only difference between these 2 setups is the DAC is swapped, is that intentional?
27822795#define OTHERS_TMZ84C011_SOUND_PORTS \
27832796   MCFG_TMPZ84C011_PORTA_WRITE_CB(WRITE8(nbmj9195_state, soundcpu_porta_w)) \
r31060r31061
28162829
28172830   /* basic machine hardware */
28182831   MCFG_CPU_ADD("maincpu", TMPZ84C011, 12000000/2) /* TMPZ84C011, 6.00 MHz */
2832   MCFG_CPU_CONFIG(daisy_chain_main)
28192833   MCFG_CPU_PROGRAM_MAP(sailorws_map)
28202834   MCFG_CPU_IO_MAP(sailorws_io_map)
28212835   MCFG_CPU_VBLANK_INT_DRIVER("screen", nbmj9195_state, ctc0_trg1) /* vblank is connect to ctc trigger */
28222836
28232837   MCFG_CPU_ADD("audiocpu", TMPZ84C011, 8000000) /* TMPZ84C011, 8.00 MHz */
2838   MCFG_CPU_CONFIG(daisy_chain_sound)
28242839   MCFG_CPU_PROGRAM_MAP(sailorws_sound_map)
28252840   MCFG_CPU_IO_MAP(sailorws_sound_io_map)
28262841   MCFG_DEVICE_MODIFY("audiocpu:ctc")
trunk/src/mame/drivers/csplayh5.c
r31060r31061
4444      m_v9958(*this, "v9958"),
4545      m_dac1(*this, "dac1"),
4646      m_dac2(*this, "dac2")
47      { }
47   { }
4848
49   UINT16 m_mux_data;
50
51
5249   required_device<cpu_device> m_maincpu;
5350   required_device<tmp68301_device> m_tmp68301;
5451   required_device<v9958_device> m_v9958;
52   required_device<dac_device> m_dac1;
53   required_device<dac_device> m_dac2;
54
55   UINT16 m_mux_data;
56
5557   DECLARE_READ16_MEMBER(csplayh5_mux_r);
5658   DECLARE_WRITE16_MEMBER(csplayh5_mux_w);
5759   DECLARE_WRITE16_MEMBER(csplayh5_sound_w);
r31060r31061
7880   virtual void machine_reset();
7981   TIMER_DEVICE_CALLBACK_MEMBER(csplayh5_irq);
8082   DECLARE_WRITE_LINE_MEMBER(csplayh5_vdp0_interrupt);
81   required_device<dac_device> m_dac1;
82   required_device<dac_device> m_dac2;
8383};
8484
8585
r31060r31061
448448   }
449449}
450450
451static const z80_daisy_config daisy_chain_sound[] =
452{
453   { "audiocpu:ctc" },
454   { NULL }
455};
456
451457static MACHINE_CONFIG_START( csplayh5, csplayh5_state )
452458
453459   /* basic machine hardware */
r31060r31061
466472#endif
467473
468474   MCFG_CPU_ADD("audiocpu", TMPZ84C011, 8000000)  /* TMPZ84C011, unknown clock */
475   MCFG_CPU_CONFIG(daisy_chain_sound)
469476   MCFG_CPU_PROGRAM_MAP(csplayh5_sound_map)
470477   MCFG_CPU_IO_MAP(csplayh5_sound_io_map)
471478   MCFG_TMPZ84C011_PORTA_WRITE_CB(WRITE8(csplayh5_state, soundcpu_porta_w))
trunk/src/emu/cpu/z80/tmpz84c011.c
r31060r31061
205205}
206206
207207
208static const z80_daisy_config daisy_chain[] =
209{
210   { "ctc" },
211   { NULL }
212};
213
214208static MACHINE_CONFIG_FRAGMENT( tmpz84c011 )
215209   MCFG_DEVICE_ADD("ctc", Z80CTC, DERIVED_CLOCK(1,1) )
216210   MCFG_Z80CTC_INTR_CB(INPUTLINE(DEVICE_SELF, INPUT_LINE_IRQ0))
217   MCFG_CPU_MODIFY(DEVICE_SELF)
218   MCFG_CPU_CONFIG(daisy_chain)
219211MACHINE_CONFIG_END
220212
221213machine_config_constructor tmpz84c011_device::device_mconfig_additions() const
trunk/src/emu/cpu/z80/z80daisy.c
r31060r31061
6161   {
6262      // find the device
6363      device_t *target;
64      if ((target = cpudevice->subdevice(daisy->devname)) == NULL)
64      if ((target = cpudevice->siblingdevice(daisy->devname)) == NULL)
6565      {
66         if ((target = cpudevice->siblingdevice(daisy->devname)) == NULL)
66         if ((target = cpudevice->subdevice(daisy->devname)) == NULL)
6767            fatalerror("Unable to locate device '%s'\n", daisy->devname);
6868      }
6969

Previous 199869 Revisions Next


© 1997-2024 The MAME Team