Previous 199869 Revisions Next

r17491 Monday 27th August, 2012 at 01:21:17 UTC by Tafoid
Continuing new device implementation for SN76496 and clones - suprloco.c, strnskil.c, shaolins.c, superdq.c, system1.c, xyonix.c and pacman.c  [Osso]
[src/mame/drivers]pacman.c shaolins.c strnskil.c superdq.c suprloco.c system1.c xyonix.c

trunk/src/mame/drivers/superdq.c
r17490r17491
213213   AM_RANGE(0x01, 0x01) AM_READ_PORT("IN1")
214214   AM_RANGE(0x02, 0x02) AM_READ_PORT("DSW1")
215215   AM_RANGE(0x03, 0x03) AM_READ_PORT("DSW2")
216   AM_RANGE(0x04, 0x04) AM_READ(superdq_ld_r) AM_DEVWRITE_LEGACY("snsnd", sn76496_w)
216   AM_RANGE(0x04, 0x04) AM_READ(superdq_ld_r) AM_DEVWRITE("snsnd", sn76496_new_device, write)
217217   AM_RANGE(0x08, 0x08) AM_WRITE(superdq_io_w)
218218   AM_RANGE(0x0c, 0x0d) AM_NOP /* HD46505S */
219219ADDRESS_MAP_END
r17490r17491
310310GFXDECODE_END
311311
312312
313/*************************************
314 *
315 *  Sound interface
316 *
317 *************************************/
313318
319//-------------------------------------------------
320//  sn76496_config psg_intf
321//-------------------------------------------------
322
323static const sn76496_config psg_intf =
324{
325    DEVCB_NULL
326};
327
328
314329/*************************************
315330 *
316331 *  Machine drivers
r17490r17491
348363   /* sound hardware */
349364   MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker")
350365
351   MCFG_SOUND_ADD("snsnd", SN76496, MASTER_CLOCK/8)
366   MCFG_SOUND_ADD("snsnd", SN76496_NEW, MASTER_CLOCK/8)
352367   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "lspeaker", 0.8)
368   MCFG_SOUND_CONFIG(psg_intf)
353369
354370   MCFG_SOUND_MODIFY("laserdisc")
355371   MCFG_SOUND_ROUTE(0, "lspeaker", 1.0)
trunk/src/mame/drivers/strnskil.c
r17490r17491
103103   AM_RANGE(0xc000, 0xc7ff) AM_RAM AM_SHARE("spriteram")
104104   AM_RANGE(0xc800, 0xcfff) AM_RAM AM_SHARE("share1")
105105
106   AM_RANGE(0xd801, 0xd801) AM_DEVWRITE_LEGACY("sn1", sn76496_w)
107   AM_RANGE(0xd802, 0xd802) AM_DEVWRITE_LEGACY("sn2", sn76496_w)
106   AM_RANGE(0xd801, 0xd801) AM_DEVWRITE("sn1", sn76496_new_device, write)
107   AM_RANGE(0xd802, 0xd802) AM_DEVWRITE("sn2", sn76496_new_device, write)
108108ADDRESS_MAP_END
109109
110110
r17490r17491
331331}
332332
333333
334/*************************************
335 *
336 *  Sound interface
337 *
338 *************************************/
339
340//-------------------------------------------------
341//  sn76496_config psg_intf
342//-------------------------------------------------
343
344static const sn76496_config psg_intf =
345{
346    DEVCB_NULL
347};
348
349
334350static MACHINE_CONFIG_START( strnskil, strnskil_state )
335351
336352   /* basic machine hardware */
r17490r17491
362378   /* sound hardware */
363379   MCFG_SPEAKER_STANDARD_MONO("mono")
364380
365   MCFG_SOUND_ADD("sn1", SN76496, 8000000/4)
381   MCFG_SOUND_ADD("sn1", SN76496_NEW, 8000000/4)
366382   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.75)
383   MCFG_SOUND_CONFIG(psg_intf)
367384
368   MCFG_SOUND_ADD("sn2", SN76496, 8000000/2)
385   MCFG_SOUND_ADD("sn2", SN76496_NEW, 8000000/2)
369386   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.75)
387   MCFG_SOUND_CONFIG(psg_intf)
370388MACHINE_CONFIG_END
371389
372390
trunk/src/mame/drivers/suprloco.c
r17490r17491
4545static ADDRESS_MAP_START( sound_map, AS_PROGRAM, 8, suprloco_state )
4646   AM_RANGE(0x0000, 0x7fff) AM_ROM
4747   AM_RANGE(0x8000, 0x87ff) AM_RAM
48   AM_RANGE(0xa000, 0xa003) AM_DEVWRITE_LEGACY("sn1", sn76496_w)
49   AM_RANGE(0xc000, 0xc003) AM_DEVWRITE_LEGACY("sn2", sn76496_w)
48   AM_RANGE(0xa000, 0xa003) AM_DEVWRITE("sn1", sn76496_new_device, write)
49   AM_RANGE(0xc000, 0xc003) AM_DEVWRITE("sn2", sn76496_new_device, write)
5050   AM_RANGE(0xe000, 0xe000) AM_READ(soundlatch_byte_r)
5151ADDRESS_MAP_END
5252
r17490r17491
150150GFXDECODE_END
151151
152152
153/*************************************
154 *
155 *  Sound interface
156 *
157 *************************************/
153158
159//-------------------------------------------------
160//  sn76496_config psg_intf
161//-------------------------------------------------
162
163static const sn76496_config psg_intf =
164{
165    DEVCB_NULL
166};
167
168
154169static MACHINE_CONFIG_START( suprloco, suprloco_state )
155170
156171   /* basic machine hardware */
r17490r17491
179194   /* sound hardware */
180195   MCFG_SPEAKER_STANDARD_MONO("mono")
181196
182   MCFG_SOUND_ADD("sn1", SN76496, 4000000)
197   MCFG_SOUND_ADD("sn1", SN76496_NEW, 4000000)
183198   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
199   MCFG_SOUND_CONFIG(psg_intf)
184200
185   MCFG_SOUND_ADD("sn2", SN76496, 2000000)
201   MCFG_SOUND_ADD("sn2", SN76496_NEW, 2000000)
186202   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
203   MCFG_SOUND_CONFIG(psg_intf)
187204MACHINE_CONFIG_END
188205
189206
trunk/src/mame/drivers/system1.c
r17490r17491
774774static ADDRESS_MAP_START( sound_map, AS_PROGRAM, 8, system1_state )
775775   AM_RANGE(0x0000, 0x7fff) AM_ROM
776776   AM_RANGE(0x8000, 0x87ff) AM_MIRROR(0x1800) AM_RAM
777   AM_RANGE(0xa000, 0xa003) AM_MIRROR(0x1fff) AM_DEVWRITE_LEGACY("sn1", sn76496_w)
778   AM_RANGE(0xc000, 0xc003) AM_MIRROR(0x1fff) AM_DEVWRITE_LEGACY("sn2", sn76496_w)
777   AM_RANGE(0xa000, 0xa003) AM_MIRROR(0x1fff) AM_DEVWRITE("sn1", sn76489a_new_device, write)
778   AM_RANGE(0xc000, 0xc003) AM_MIRROR(0x1fff) AM_DEVWRITE("sn2", sn76489a_new_device, write)
779779   AM_RANGE(0xe000, 0xe000) AM_MIRROR(0x1fff) AM_READ(sound_data_r)
780780ADDRESS_MAP_END
781781
r17490r17491
20922092GFXDECODE_END
20932093
20942094
2095/*************************************
2096 *
2097 *  Sound interface
2098 *
2099 *************************************/
20952100
2101//-------------------------------------------------
2102//  sn76496_config psg_intf
2103//-------------------------------------------------
2104
2105static const sn76496_config psg_intf =
2106{
2107    DEVCB_NULL
2108};
2109
2110
20962111/*************************************
20972112 *
20982113 *  Machine driver
r17490r17491
21632178   /* sound hardware */
21642179   MCFG_SPEAKER_STANDARD_MONO("mono")
21652180
2166   MCFG_SOUND_ADD("sn1", SN76489A, SOUND_CLOCK/4)
2181   MCFG_SOUND_ADD("sn1", SN76489A_NEW, SOUND_CLOCK/4)
21672182   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50)
2183   MCFG_SOUND_CONFIG(psg_intf)
21682184
2169   MCFG_SOUND_ADD("sn2", SN76489A, SOUND_CLOCK/2)   /* selectable via jumper */
2185   MCFG_SOUND_ADD("sn2", SN76489A_NEW, SOUND_CLOCK/2)   /* selectable via jumper */
21702186   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50)
2187   MCFG_SOUND_CONFIG(psg_intf)
21712188MACHINE_CONFIG_END
21722189
21732190/* reduced visible area for scrolling games */
trunk/src/mame/drivers/shaolins.c
r17490r17491
3030   AM_RANGE(0x0000, 0x0000) AM_WRITE(shaolins_nmi_w)   /* bit 0 = flip screen, bit 1 = nmi enable, bit 2 = ? */
3131                                          /* bit 3, bit 4 = coin counters */
3232   AM_RANGE(0x0100, 0x0100) AM_WRITE(watchdog_reset_w)
33   AM_RANGE(0x0300, 0x0300) AM_DEVWRITE_LEGACY("sn1", sn76496_w)   /* trigger chip to read from latch. The program always */
34   AM_RANGE(0x0400, 0x0400) AM_DEVWRITE_LEGACY("sn2", sn76496_w)   /* writes the same number as the latch, so we don't */
33   AM_RANGE(0x0300, 0x0300) AM_DEVWRITE("sn1", sn76489a_new_device, write)   /* trigger chip to read from latch. The program always */
34   AM_RANGE(0x0400, 0x0400) AM_DEVWRITE("sn2", sn76489a_new_device, write)   /* writes the same number as the latch, so we don't */
3535                                             /* bother emulating them. */
3636   AM_RANGE(0x0500, 0x0500) AM_READ_PORT("DSW1")
3737   AM_RANGE(0x0600, 0x0600) AM_READ_PORT("DSW2")
r17490r17491
186186GFXDECODE_END
187187
188188
189/*************************************
190 *
191 *  Sound interface
192 *
193 *************************************/
189194
195//-------------------------------------------------
196//  sn76496_config psg_intf
197//-------------------------------------------------
198
199static const sn76496_config psg_intf =
200{
201    DEVCB_NULL
202};
203
204
190205static MACHINE_CONFIG_START( shaolins, shaolins_state )
191206
192207   /* basic machine hardware */
r17490r17491
211226   /* sound hardware */
212227   MCFG_SPEAKER_STANDARD_MONO("mono")
213228
214   MCFG_SOUND_ADD("sn1", SN76489A, MASTER_CLOCK/12)        /* verified on pcb */
229   MCFG_SOUND_ADD("sn1", SN76489A_NEW, MASTER_CLOCK/12)        /* verified on pcb */
215230   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
231   MCFG_SOUND_CONFIG(psg_intf)
216232
217   MCFG_SOUND_ADD("sn2", SN76489A, MASTER_CLOCK/6)        /* verified on pcb */
233   MCFG_SOUND_ADD("sn2", SN76489A_NEW, MASTER_CLOCK/6)        /* verified on pcb */
218234   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
235   MCFG_SOUND_CONFIG(psg_intf)
219236MACHINE_CONFIG_END
220237
221238#if 0 // a bootleg board was found with downgraded sound hardware, but is otherwise the same
222239static MACHINE_CONFIG_DERIVED( shaolinb, shaolins )
223240
224   MCFG_SOUND_REPLACE("sn1", SN76489, MASTER_CLOCK/12) /* only type verified on pcb */
241   MCFG_SOUND_REPLACE("sn1", SN76489_NEW, MASTER_CLOCK/12) /* only type verified on pcb */
225242   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
243   MCFG_SOUND_CONFIG(psg_intf)
226244
227   MCFG_SOUND_REPLACE("sn2", SN76489, MASTER_CLOCK/6)  /* only type verified on pcb */
245   MCFG_SOUND_REPLACE("sn2", SN76489_NEW, MASTER_CLOCK/6)  /* only type verified on pcb */
228246   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
247   MCFG_SOUND_CONFIG(psg_intf)
229248MACHINE_CONFIG_END
230249#endif
231250
trunk/src/mame/drivers/xyonix.c
r17490r17491
140140
141141static ADDRESS_MAP_START( port_map, AS_IO, 8, xyonix_state )
142142   ADDRESS_MAP_GLOBAL_MASK(0xff)
143   AM_RANGE(0x20, 0x20) AM_READNOP AM_DEVWRITE_LEGACY("sn1", sn76496_w)   /* SN76496 ready signal */
144   AM_RANGE(0x21, 0x21) AM_READNOP AM_DEVWRITE_LEGACY("sn2", sn76496_w)
143   AM_RANGE(0x20, 0x20) AM_READNOP AM_DEVWRITE("sn1", sn76496_new_device, write)   /* SN76496 ready signal */
144   AM_RANGE(0x21, 0x21) AM_READNOP AM_DEVWRITE("sn2", sn76496_new_device, write)
145145   AM_RANGE(0x40, 0x40) AM_WRITENOP      /* NMI ack? */
146146   AM_RANGE(0x50, 0x50) AM_WRITE(xyonix_irqack_w)
147147   AM_RANGE(0x60, 0x61) AM_WRITENOP      /* mc6845 */
r17490r17491
210210   GFXDECODE_ENTRY( "gfx1", 0, charlayout, 0, 16 )
211211GFXDECODE_END
212212
213
214/*************************************
215 *
216 *  Sound interface
217 *
218 *************************************/
219
220//-------------------------------------------------
221//  sn76496_config psg_intf
222//-------------------------------------------------
223
224static const sn76496_config psg_intf =
225{
226    DEVCB_NULL
227};
228
229
213230/* MACHINE driver *************************************************************/
214231
215232static MACHINE_CONFIG_START( xyonix, xyonix_state )
r17490r17491
238255   /* sound hardware */
239256   MCFG_SPEAKER_STANDARD_MONO("mono")
240257
241   MCFG_SOUND_ADD("sn1", SN76496, 16000000/4)
258   MCFG_SOUND_ADD("sn1", SN76496_NEW, 16000000/4)
242259   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
260   MCFG_SOUND_CONFIG(psg_intf)
243261
244   MCFG_SOUND_ADD("sn2", SN76496, 16000000/4)
262   MCFG_SOUND_ADD("sn2", SN76496_NEW, 16000000/4)
245263   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
264   MCFG_SOUND_CONFIG(psg_intf)
246265MACHINE_CONFIG_END
247266
248267/* ROM Loading ***************************************************************/
trunk/src/mame/drivers/pacman.c
r17490r17491
13111311
13121312static ADDRESS_MAP_START( vanvan_portmap, AS_IO, 8, pacman_state )
13131313   ADDRESS_MAP_GLOBAL_MASK(0xff)
1314   AM_RANGE(0x01, 0x01) AM_DEVWRITE_LEGACY("namco", sn76496_w)
1315   AM_RANGE(0x02, 0x02) AM_DEVWRITE_LEGACY("sn2", sn76496_w)
1314   AM_RANGE(0x01, 0x01) AM_DEVWRITE("namco", sn76496_new_device, write)
1315   AM_RANGE(0x02, 0x02) AM_DEVWRITE("sn2", sn76496_new_device, write)
13161316ADDRESS_MAP_END
13171317
13181318static ADDRESS_MAP_START( dremshpr_portmap, AS_IO, 8, pacman_state )
r17490r17491
13501350ADDRESS_MAP_END
13511351
13521352static ADDRESS_MAP_START( s2650games_writeport, AS_IO, 8, pacman_state )
1353   AM_RANGE(S2650_DATA_PORT, S2650_DATA_PORT) AM_DEVWRITE_LEGACY("namco", sn76496_w)
1353   AM_RANGE(S2650_DATA_PORT, S2650_DATA_PORT) AM_DEVWRITE("namco", sn76496_new_device, write)
13541354ADDRESS_MAP_END
13551355
13561356static ADDRESS_MAP_START( drivfrcp_portmap, AS_IO, 8, pacman_state )
r17490r17491
32733273};
32743274
32753275
3276//-------------------------------------------------
3277//  sn76496_config psg_intf
3278//-------------------------------------------------
32763279
3280static const sn76496_config psg_intf =
3281{
3282    DEVCB_NULL
3283};
3284
3285
32773286/*************************************
32783287 *
32793288 *  Machine drivers
r17490r17491
34123421   MCFG_SCREEN_VISIBLE_AREA(2*8, 34*8-1, 0*8, 28*8-1)
34133422
34143423   /* sound hardware */
3415   MCFG_SOUND_REPLACE("namco", SN76496, 1789750)
3424   MCFG_SOUND_REPLACE("namco", SN76496_NEW, 1789750)
3425   MCFG_SOUND_CONFIG(psg_intf)
34163426   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.75)
3417   MCFG_SOUND_ADD("sn2", SN76496, 1789750)
3427   MCFG_SOUND_ADD("sn2", SN76496_NEW, 1789750)
3428   MCFG_SOUND_CONFIG(psg_intf)
34183429   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.75)
34193430MACHINE_CONFIG_END
34203431
r17490r17491
34513462   MCFG_VIDEO_START(s2650games)
34523463
34533464   /* sound hardware */
3454   MCFG_SOUND_REPLACE("namco", SN76496, MASTER_CLOCK/6)   /* 1H */
3465   MCFG_SOUND_REPLACE("namco", SN76496_NEW, MASTER_CLOCK/6)   /* 1H */
3466   MCFG_SOUND_CONFIG(psg_intf)
34553467   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.75)
34563468MACHINE_CONFIG_END
34573469

Previous 199869 Revisions Next


© 1997-2024 The MAME Team