Previous 199869 Revisions Next

r17422 Thursday 23rd August, 2012 at 13:27:45 UTC by Tafoid
Continuing new device implementation for SN76496 and clones - mrdo.c, pachifev.c, tp84.c  [Osso]
[src/mame/drivers]mrdo.c pachifev.c tp84.c

trunk/src/mame/drivers/tp84.c
r17421r17422
193193   AM_RANGE(0x8000, 0x8000) AM_READ(tp84_sh_timer_r)
194194   AM_RANGE(0xa000, 0xa1ff) AM_WRITE(tp84_filter_w)
195195   AM_RANGE(0xc000, 0xc000) AM_WRITENOP
196   AM_RANGE(0xc001, 0xc001) AM_DEVWRITE_LEGACY("sn1", sn76496_w)
197   AM_RANGE(0xc003, 0xc003) AM_DEVWRITE_LEGACY("sn2", sn76496_w)
198   AM_RANGE(0xc004, 0xc004) AM_DEVWRITE_LEGACY("sn3", sn76496_w)
196   AM_RANGE(0xc001, 0xc001) AM_DEVWRITE("y2404_1", y2404_new_device, write)
197   AM_RANGE(0xc003, 0xc003) AM_DEVWRITE("y2404_2", y2404_new_device, write)
198   AM_RANGE(0xc004, 0xc004) AM_DEVWRITE("y2404_3", y2404_new_device, write)
199199ADDRESS_MAP_END
200200
201201
r17421r17422
288288}
289289
290290
291/*************************************
292 *
293 *  Sound interface
294 *
295 *************************************/
296
297
298//-------------------------------------------------
299//  sn76496_config psg_intf
300//-------------------------------------------------
301
302static const sn76496_config psg_intf =
303{
304    DEVCB_NULL
305};
306
307
291308static MACHINE_CONFIG_START( tp84, tp84_state )
292309
293310   /* basic machine hardware */
r17421r17422
324341   /* audio hardware */
325342   MCFG_SPEAKER_STANDARD_MONO("mono")
326343
327   MCFG_SOUND_ADD("sn1", Y2404, XTAL_14_31818MHz/8) /* verified on pcb */
344   MCFG_SOUND_ADD("y2404_1", Y2404_NEW, XTAL_14_31818MHz/8) /* verified on pcb */
328345   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "filter1", 0.75)
346   MCFG_SOUND_CONFIG(psg_intf)
329347
330   MCFG_SOUND_ADD("sn2", Y2404, XTAL_14_31818MHz/8) /* verified on pcb */
348   MCFG_SOUND_ADD("y2404_2", Y2404_NEW, XTAL_14_31818MHz/8) /* verified on pcb */
331349   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "filter2", 0.75)
350   MCFG_SOUND_CONFIG(psg_intf)
332351
333   MCFG_SOUND_ADD("sn3", Y2404, XTAL_14_31818MHz/8) /* verified on pcb */
352   MCFG_SOUND_ADD("y2404_3", Y2404_NEW, XTAL_14_31818MHz/8) /* verified on pcb */
334353   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "filter3", 0.75)
354   MCFG_SOUND_CONFIG(psg_intf)
335355
336356   MCFG_SOUND_ADD("filter1", FILTER_RC, 0)
337357   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
trunk/src/mame/drivers/mrdo.c
r17421r17422
4646   AM_RANGE(0x8800, 0x8fff) AM_RAM_WRITE(mrdo_fgvideoram_w) AM_SHARE("fgvideoram")
4747   AM_RANGE(0x9000, 0x90ff) AM_WRITEONLY AM_SHARE("spriteram")
4848   AM_RANGE(0x9800, 0x9800) AM_WRITE(mrdo_flipscreen_w)   /* screen flip + playfield priority */
49   AM_RANGE(0x9801, 0x9801) AM_DEVWRITE_LEGACY("sn1", sn76496_w)
50   AM_RANGE(0x9802, 0x9802) AM_DEVWRITE_LEGACY("sn2", sn76496_w)
49   AM_RANGE(0x9801, 0x9801) AM_DEVWRITE("u8106_1", u8106_new_device, write)
50   AM_RANGE(0x9802, 0x9802) AM_DEVWRITE("u8106_2", u8106_new_device, write)
5151   AM_RANGE(0x9803, 0x9803) AM_READ(mrdo_SECRE_r)
5252   AM_RANGE(0xa000, 0xa000) AM_READ_PORT("P1")
5353   AM_RANGE(0xa001, 0xa001) AM_READ_PORT("P2")
r17421r17422
164164GFXDECODE_END
165165
166166
167/*************************************
168 *
169 *  Sound interface
170 *
171 *************************************/
172 
173 
174//-------------------------------------------------
175//  sn76496_config psg_intf
176//-------------------------------------------------
167177
178static const sn76496_config psg_intf =
179{
180    DEVCB_NULL
181};
182
183
168184static MACHINE_CONFIG_START( mrdo, mrdo_state )
169185
170186   /* basic machine hardware */
r17421r17422
186202   /* sound hardware */
187203   MCFG_SPEAKER_STANDARD_MONO("mono")
188204
189   MCFG_SOUND_ADD("sn1", U8106, MAIN_CLOCK/2)   /* sn76489-equivalent?, Verified */
205   MCFG_SOUND_ADD("u8106_1", U8106_NEW, MAIN_CLOCK/2)   /* sn76489-equivalent?, Verified */
190206   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50)
207   MCFG_SOUND_CONFIG(psg_intf)
191208
192   MCFG_SOUND_ADD("sn2", U8106, MAIN_CLOCK/2)   /* sn76489-equivalent?, Verified */
209   MCFG_SOUND_ADD("u8106_2", U8106_NEW, MAIN_CLOCK/2)   /* sn76489-equivalent?, Verified */
193210   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50)
211   MCFG_SOUND_CONFIG(psg_intf)
194212MACHINE_CONFIG_END
195213
196214
trunk/src/mame/drivers/pachifev.c
r17421r17422
143143    AM_RANGE(0xff08, 0xff08) AM_READ_PORT("DSW3")
144144    AM_RANGE(0xff10, 0xff10) AM_DEVREADWRITE("tms9928a", tms9928a_device, vram_read, vram_write)
145145    AM_RANGE(0xff12, 0xff12) AM_DEVREADWRITE("tms9928a", tms9928a_device, register_read, register_write)
146    AM_RANGE(0xff20, 0xff20) AM_DEVWRITE_LEGACY("sn76_1", sn76496_w)
147    AM_RANGE(0xff30, 0xff30) AM_DEVWRITE_LEGACY("sn76_2", sn76496_w)
146    AM_RANGE(0xff20, 0xff20) AM_DEVWRITE("y2404_1", y2404_new_device, write)
147    AM_RANGE(0xff30, 0xff30) AM_DEVWRITE("y2404_2", y2404_new_device, write)
148148    AM_RANGE(0xff40, 0xff40) AM_WRITE(controls_w)
149149    AM_RANGE(0xff50, 0xff50) AM_WRITENOP /* unknown */
150150    AM_RANGE(0xfffa, 0xfffb) AM_NOP /* decrementer */
r17421r17422
246246INPUT_PORTS_END
247247
248248
249/*************************************
250 *
251 *  Sound interface
252 *
253 *************************************/
254 
255 
256//-------------------------------------------------
257//  sn76496_config psg_intf
258//-------------------------------------------------
259
260static const sn76496_config psg_intf =
261{
262    DEVCB_NULL
263};
264
265
249266#if USE_MSM
250267
251268
r17421r17422
378395    MCFG_SOUND_CONFIG(msm5205_config)
379396    MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00)
380397#endif
381    MCFG_SOUND_ADD("sn76_1", Y2404, XTAL_10_738635MHz/3) /* guess */
398    MCFG_SOUND_ADD("y2404_1", Y2404_NEW, XTAL_10_738635MHz/3) /* guess */
382399    MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.30)
383    MCFG_SOUND_ADD("sn76_2", Y2404, XTAL_10_738635MHz/3) /* guess */
400   MCFG_SOUND_CONFIG(psg_intf)
401    MCFG_SOUND_ADD("y2404_2", Y2404_NEW, XTAL_10_738635MHz/3) /* guess */
384402    MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.30)
403   MCFG_SOUND_CONFIG(psg_intf)
385404MACHINE_CONFIG_END
386405
387406ROM_START( pachifev )

Previous 199869 Revisions Next


© 1997-2024 The MAME Team