Previous 199869 Revisions Next

r19729 Saturday 22nd December, 2012 at 18:02:30 UTC by hap
add/verify msm5205_playmode_w
[src/mame/drivers]kurukuru.c sothello.c

trunk/src/mame/drivers/kurukuru.c
r19728r19729
88
99
1010  This hardware seems to be a derivative of MSX2 'on steroids'.
11  It has many similarites with sothello.c and tonton.c
1112
1213
1314*******************************************************************************
r19728r19729
357358
358359WRITE8_MEMBER(kurukuru_state::kurukuru_adpcm_reset_w)
359360{
360   // d0: reset adpcm chip
361   // other bits: ?
362   msm5205_reset_w(machine().device("adpcm"), data & 1);
361   device_t *device = machine().device("adpcm");
362/*
363     bit 0 = RESET
364     bit 1 = 4B/3B
365     bit 2 = S2
366     bit 3 = S1
367*/
368   msm5205_playmode_w(device, BITSWAP8((data>>1), 7,6,5,4,3,0,1,2));
369   msm5205_reset_w(device, data & 1);
363370   update_sound_irq(m_sound_irq_cause);
364371}
365372
r19728r19729
512519static const msm5205_interface msm5205_config =
513520{
514521   kurukuru_msm5205_vck,
515   MSM5205_S48_4B      /* 8 kHz? */
522   MSM5205_S48_4B      /* changed on the fly */
516523};
517524
518525
trunk/src/mame/drivers/sothello.c
r19728r19729
4949      : driver_device(mconfig, type, tag),
5050        m_v9938(*this, "v9938") { }
5151
52   required_device<v9938_device> m_v9938;
53
5254   int m_subcpu_status;
5355   int m_soundcpu_busy;
5456   int m_msm_data;
55   required_device<v9938_device> m_v9938;
57
5658   DECLARE_WRITE8_MEMBER(bank_w);
5759   DECLARE_READ8_MEMBER(subcpu_halt_set);
5860   DECLARE_READ8_MEMBER(subcpu_halt_clear);
r19728r19729
6567   DECLARE_WRITE8_MEMBER(subcpu_status_w);
6668   DECLARE_READ8_MEMBER(subcpu_status_r);
6769   DECLARE_WRITE8_MEMBER(msm_cfg_w);
70
6871   virtual void machine_reset();
6972   TIMER_CALLBACK_MEMBER(subcpu_suspend);
7073   TIMER_CALLBACK_MEMBER(subcpu_resume);
r19728r19729
167170     bit 2 = S2    1
168171     bit 3 = S1    2
169172*/
170    msm5205_playmode_w(device, BITSWAP8((data>>1), 7,6,5,4,3,0,1,2)); /* or maybe 7,6,5,4,3,0,2,1 ??? */
173    msm5205_playmode_w(device, BITSWAP8((data>>1), 7,6,5,4,3,0,1,2));
171174    msm5205_reset_w(device,data&1);
172175}
173176
r19728r19729
365368static MACHINE_CONFIG_START( sothello, sothello_state )
366369
367370    /* basic machine hardware */
368
369371    MCFG_CPU_ADD("maincpu",Z80, MAINCPU_CLOCK)
370372    MCFG_CPU_PROGRAM_MAP(maincpu_mem_map)
371373    MCFG_CPU_IO_MAP(maincpu_io_map)
r19728r19729
380382
381383    MCFG_QUANTUM_TIME(attotime::from_hz(600))
382384
383
385   /* video hardware */
384386   MCFG_V9938_ADD("v9938", "screen", VDP_MEM)
385387   MCFG_V99X8_INTERRUPT_CALLBACK_STATIC(sothello_vdp_interrupt)
386388
r19728r19729
408410    MCFG_SOUND_ADD("msm",MSM5205, MSM_CLOCK)
409411    MCFG_SOUND_CONFIG(msm_interface)
410412    MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
411
412413MACHINE_CONFIG_END
413414
414415/***************************************************************************

Previous 199869 Revisions Next


© 1997-2024 The MAME Team