Previous 199869 Revisions Next

r18238 Tuesday 2nd October, 2012 at 07:24:11 UTC by Miodrag Milanović
Removed _new from name of modern device (no whatsnew)
[src/emu/sound]sn76496.c sn76496.h
[src/mame/audio]qix.c
[src/mame/drivers]appoooh.c atetris.c bankp.c centiped.c circusc.c docastle.c drmicro.c exedexes.c finalizr.c freekick.c galaxold.c gatron.c gberet.c goldstar.c guab.c homedata.c hyperspt.c ikki.c jailbrek.c jantotsu.c jpmmps.c kncljoe.c kontest.c ladybug.c lasso.c lucky74.c markham.c megaplay.c megatech.c mikie.c mjkjidai.c mrdo.c mrjong.c pachifev.c pacman.c pingpong.c retofinv.c sbasketb.c sbugger.c segac2.c segae.c segag80r.c senjyo.c sg1000a.c shaolins.c spaceg.c spcforce.c sprcros2.c strnskil.c superdq.c suprloco.c system1.c tp84.c trackfld.c wico.c xyonix.c yiear.c zaxxon.c
[src/mame/includes]circusc.h gberet.h homedata.h hyperspt.h lasso.h qix.h sbasketb.h segag80r.h spcforce.h trackfld.h yiear.h
[src/mame/machine]megadriv.c megavdp.c segamsys.c
[src/mess/drivers]adam.c apricot.c apricotp.c bbc.c coleco.c crvision.c m5.c mtx.c mycom.c mz700.c pasopia7.c pc.c pv2000.c rx78.c sg1000.c smc777.c sms.c tutor.c
[src/mess/includes]bbc.h mtx.h
[src/mess/machine]a2alfam2.c a2alfam2.h wangpckb.c
[src/mess/machine/ti99]videowrp.c

trunk/src/mame/drivers/docastle.c
r18237r18238
228228   AM_RANGE(0xc005, 0xc005) AM_MIRROR(0x0080) AM_READ_PORT("BUTTONS")
229229   AM_RANGE(0xc007, 0xc007) AM_MIRROR(0x0080) AM_READ_PORT("SYSTEM")
230230   AM_RANGE(0xc084, 0xc084) AM_READWRITE(docastle_flipscreen_on_r, docastle_flipscreen_on_w)
231   AM_RANGE(0xe000, 0xe000) AM_DEVWRITE("sn1", sn76489a_new_device, write)
232   AM_RANGE(0xe400, 0xe400) AM_DEVWRITE("sn2", sn76489a_new_device, write)
233   AM_RANGE(0xe800, 0xe800) AM_DEVWRITE("sn3", sn76489a_new_device, write)
234   AM_RANGE(0xec00, 0xec00) AM_DEVWRITE("sn4", sn76489a_new_device, write)
231   AM_RANGE(0xe000, 0xe000) AM_DEVWRITE("sn1", sn76489a_device, write)
232   AM_RANGE(0xe400, 0xe400) AM_DEVWRITE("sn2", sn76489a_device, write)
233   AM_RANGE(0xe800, 0xe800) AM_DEVWRITE("sn3", sn76489a_device, write)
234   AM_RANGE(0xec00, 0xec00) AM_DEVWRITE("sn4", sn76489a_device, write)
235235ADDRESS_MAP_END
236236
237237static ADDRESS_MAP_START( docastle_map3, AS_PROGRAM, 8, docastle_state )
r18237r18238
264264static ADDRESS_MAP_START( dorunrun_map2, AS_PROGRAM, 8, docastle_state )
265265   AM_RANGE(0x0000, 0x3fff) AM_ROM
266266   AM_RANGE(0x8000, 0x87ff) AM_RAM
267   AM_RANGE(0xa000, 0xa000) AM_DEVWRITE("sn1", sn76489a_new_device, write)
268   AM_RANGE(0xa400, 0xa400) AM_DEVWRITE("sn2", sn76489a_new_device, write)
269   AM_RANGE(0xa800, 0xa800) AM_DEVWRITE("sn3", sn76489a_new_device, write)
270   AM_RANGE(0xac00, 0xac00) AM_DEVWRITE("sn4", sn76489a_new_device, write)
267   AM_RANGE(0xa000, 0xa000) AM_DEVWRITE("sn1", sn76489a_device, write)
268   AM_RANGE(0xa400, 0xa400) AM_DEVWRITE("sn2", sn76489a_device, write)
269   AM_RANGE(0xa800, 0xa800) AM_DEVWRITE("sn3", sn76489a_device, write)
270   AM_RANGE(0xac00, 0xac00) AM_DEVWRITE("sn4", sn76489a_device, write)
271271   AM_RANGE(0xc001, 0xc001) AM_MIRROR(0x0080) AM_READ_PORT("DSW2")
272272   AM_RANGE(0xc002, 0xc002) AM_MIRROR(0x0080) AM_READ_PORT("DSW1")
273273   AM_RANGE(0xc003, 0xc003) AM_MIRROR(0x0080) AM_READ_PORT("JOYS")
r18237r18238
303303   AM_RANGE(0xc005, 0xc005) AM_MIRROR(0x0080) AM_READ_PORT("BUTTONS")
304304   AM_RANGE(0xc007, 0xc007) AM_MIRROR(0x0080) AM_READ_PORT("SYSTEM")
305305   AM_RANGE(0xc084, 0xc084) AM_READ_PORT("JOYS_RIGHT") AM_WRITE(docastle_flipscreen_on_w)
306   AM_RANGE(0xe000, 0xe000) AM_DEVWRITE("sn1", sn76489a_new_device, write)
307   AM_RANGE(0xe400, 0xe400) AM_DEVWRITE("sn2", sn76489a_new_device, write)
308   AM_RANGE(0xe800, 0xe800) AM_DEVWRITE("sn3", sn76489a_new_device, write)
309   AM_RANGE(0xec00, 0xec00) AM_DEVWRITE("sn4", sn76489a_new_device, write)
306   AM_RANGE(0xe000, 0xe000) AM_DEVWRITE("sn1", sn76489a_device, write)
307   AM_RANGE(0xe400, 0xe400) AM_DEVWRITE("sn2", sn76489a_device, write)
308   AM_RANGE(0xe800, 0xe800) AM_DEVWRITE("sn3", sn76489a_device, write)
309   AM_RANGE(0xec00, 0xec00) AM_DEVWRITE("sn4", sn76489a_device, write)
310310ADDRESS_MAP_END
311311
312312/* Input Ports */
r18237r18238
630630   /* sound hardware */
631631   MCFG_SPEAKER_STANDARD_MONO("mono")
632632
633   MCFG_SOUND_ADD("sn1", SN76489A_NEW, XTAL_4MHz)
633   MCFG_SOUND_ADD("sn1", SN76489A, XTAL_4MHz)
634634   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25)
635635   MCFG_SOUND_CONFIG(psg_intf)
636636
637   MCFG_SOUND_ADD("sn2", SN76489A_NEW, XTAL_4MHz)
637   MCFG_SOUND_ADD("sn2", SN76489A, XTAL_4MHz)
638638   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25)
639639   MCFG_SOUND_CONFIG(psg_intf)
640640
641   MCFG_SOUND_ADD("sn3", SN76489A_NEW, XTAL_4MHz)
641   MCFG_SOUND_ADD("sn3", SN76489A, XTAL_4MHz)
642642   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25)
643643   MCFG_SOUND_CONFIG(psg_intf)
644644
645   MCFG_SOUND_ADD("sn4", SN76489A_NEW, XTAL_4MHz)
645   MCFG_SOUND_ADD("sn4", SN76489A, XTAL_4MHz)
646646   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25)
647647   MCFG_SOUND_CONFIG(psg_intf)
648648MACHINE_CONFIG_END
trunk/src/mame/drivers/lucky74.c
r18237r18238
924924   AM_RANGE(0xf000, 0xf003) AM_DEVREADWRITE("ppi8255_0", i8255_device, read, write)      /* Input Ports 0 & 1 */
925925   AM_RANGE(0xf080, 0xf083) AM_DEVREADWRITE("ppi8255_2", i8255_device, read, write)      /* DSW 1, 2 & 3 */
926926   AM_RANGE(0xf0c0, 0xf0c3) AM_DEVREADWRITE("ppi8255_3", i8255_device, read, write)      /* DSW 4 */
927   AM_RANGE(0xf100, 0xf100) AM_DEVWRITE("sn1", sn76489_new_device, write)                  /* SN76489 #1 */
927   AM_RANGE(0xf100, 0xf100) AM_DEVWRITE("sn1", sn76489_device, write)                  /* SN76489 #1 */
928928   AM_RANGE(0xf200, 0xf203) AM_DEVREADWRITE("ppi8255_1", i8255_device, read, write)      /* Input Ports 2 & 4 */
929   AM_RANGE(0xf300, 0xf300) AM_DEVWRITE("sn2", sn76489_new_device, write)                  /* SN76489 #2 */
929   AM_RANGE(0xf300, 0xf300) AM_DEVWRITE("sn2", sn76489_device, write)                  /* SN76489 #2 */
930930   AM_RANGE(0xf400, 0xf400) AM_DEVWRITE_LEGACY("aysnd", ay8910_address_w)               /* YM2149 control */
931   AM_RANGE(0xf500, 0xf500) AM_DEVWRITE("sn3", sn76489_new_device, write)                  /* SN76489 #3 */
931   AM_RANGE(0xf500, 0xf500) AM_DEVWRITE("sn3", sn76489_device, write)                  /* SN76489 #3 */
932932   AM_RANGE(0xf600, 0xf600) AM_DEVREADWRITE_LEGACY("aysnd", ay8910_r, ay8910_data_w)      /* YM2149 (Input Port 1) */
933933   AM_RANGE(0xf700, 0xf701) AM_READWRITE(usart_8251_r, usart_8251_w)                  /* USART 8251 port */
934934   AM_RANGE(0xf800, 0xf803) AM_READWRITE(copro_sm7831_r, copro_sm7831_w)               /* SM7831 Co-Processor */
r18237r18238
13881388   /* sound hardware */
13891389   MCFG_SPEAKER_STANDARD_MONO("mono")
13901390
1391   MCFG_SOUND_ADD("sn1", SN76489_NEW, C_06B49P_CLKOUT_03)   /* 3 MHz. */
1391   MCFG_SOUND_ADD("sn1", SN76489, C_06B49P_CLKOUT_03)   /* 3 MHz. */
13921392   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.80)
13931393   MCFG_SOUND_CONFIG(psg_intf)
13941394
1395   MCFG_SOUND_ADD("sn2", SN76489_NEW, C_06B49P_CLKOUT_03)   /* 3 MHz. */
1395   MCFG_SOUND_ADD("sn2", SN76489, C_06B49P_CLKOUT_03)   /* 3 MHz. */
13961396   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.80)
13971397   MCFG_SOUND_CONFIG(psg_intf)
13981398
1399   MCFG_SOUND_ADD("sn3", SN76489_NEW, C_06B49P_CLKOUT_03)   /* 3 MHz. */
1399   MCFG_SOUND_ADD("sn3", SN76489, C_06B49P_CLKOUT_03)   /* 3 MHz. */
14001400   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.80)
14011401   MCFG_SOUND_CONFIG(psg_intf)
14021402
trunk/src/mame/drivers/exedexes.c
r18237r18238
5555   AM_RANGE(0x4000, 0x47ff) AM_RAM
5656   AM_RANGE(0x6000, 0x6000) AM_READ(soundlatch_byte_r)
5757   AM_RANGE(0x8000, 0x8001) AM_DEVWRITE_LEGACY("aysnd", ay8910_address_data_w)
58   AM_RANGE(0x8002, 0x8002) AM_DEVWRITE("sn1", sn76489_new_device, write)
59   AM_RANGE(0x8003, 0x8003) AM_DEVWRITE("sn2", sn76489_new_device, write)
58   AM_RANGE(0x8002, 0x8002) AM_DEVWRITE("sn1", sn76489_device, write)
59   AM_RANGE(0x8003, 0x8003) AM_DEVWRITE("sn2", sn76489_device, write)
6060ADDRESS_MAP_END
6161
6262
r18237r18238
256256   MCFG_SOUND_ADD("aysnd", AY8910, 1500000)
257257   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.10)
258258
259   MCFG_SOUND_ADD("sn1", SN76489_NEW, 3000000)
259   MCFG_SOUND_ADD("sn1", SN76489, 3000000)
260260   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.36)
261261   MCFG_SOUND_CONFIG(psg_intf)
262262
263   MCFG_SOUND_ADD("sn2", SN76489_NEW, 3000000)
263   MCFG_SOUND_ADD("sn2", SN76489, 3000000)
264264   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.36)
265265   MCFG_SOUND_CONFIG(psg_intf)
266266MACHINE_CONFIG_END
trunk/src/mame/drivers/ikki.c
r18237r18238
6464   AM_RANGE(0x0000, 0x1fff) AM_ROM
6565   AM_RANGE(0xc000, 0xc7ff) AM_RAM AM_SHARE("spriteram")
6666   AM_RANGE(0xc800, 0xcfff) AM_RAM AM_SHARE("share1")
67   AM_RANGE(0xd801, 0xd801) AM_DEVWRITE("sn1", sn76496_new_device, write)
68   AM_RANGE(0xd802, 0xd802) AM_DEVWRITE("sn2", sn76496_new_device, write)
67   AM_RANGE(0xd801, 0xd801) AM_DEVWRITE("sn1", sn76496_device, write)
68   AM_RANGE(0xd802, 0xd802) AM_DEVWRITE("sn2", sn76496_device, write)
6969ADDRESS_MAP_END
7070
7171
r18237r18238
284284   /* sound hardware */
285285   MCFG_SPEAKER_STANDARD_MONO("mono")
286286
287   MCFG_SOUND_ADD("sn1", SN76496_NEW, 8000000/4)
287   MCFG_SOUND_ADD("sn1", SN76496, 8000000/4)
288288   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.75)
289289   MCFG_SOUND_CONFIG(psg_intf)
290290
291   MCFG_SOUND_ADD("sn2", SN76496_NEW, 8000000/2)
291   MCFG_SOUND_ADD("sn2", SN76496, 8000000/2)
292292   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.75)
293293   MCFG_SOUND_CONFIG(psg_intf)
294294MACHINE_CONFIG_END
trunk/src/mame/drivers/markham.c
r18237r18238
4949   AM_RANGE(0x0000, 0x5fff) AM_ROM
5050   AM_RANGE(0x8000, 0x87ff) AM_RAM AM_SHARE("share1")
5151
52   AM_RANGE(0xc000, 0xc000) AM_DEVWRITE("sn1", sn76496_new_device, write)
53   AM_RANGE(0xc001, 0xc001) AM_DEVWRITE("sn2", sn76496_new_device, write)
52   AM_RANGE(0xc000, 0xc000) AM_DEVWRITE("sn1", sn76496_device, write)
53   AM_RANGE(0xc001, 0xc001) AM_DEVWRITE("sn2", sn76496_device, write)
5454
5555   AM_RANGE(0xc002, 0xc002) AM_WRITENOP /* unknown */
5656   AM_RANGE(0xc003, 0xc003) AM_WRITENOP /* unknown */
r18237r18238
217217   /* sound hardware */
218218   MCFG_SPEAKER_STANDARD_MONO("mono")
219219
220   MCFG_SOUND_ADD("sn1", SN76496_NEW, 8000000/2)
220   MCFG_SOUND_ADD("sn1", SN76496, 8000000/2)
221221   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.75)
222222   MCFG_SOUND_CONFIG(psg_intf)
223223
224   MCFG_SOUND_ADD("sn2", SN76496_NEW, 8000000/2)
224   MCFG_SOUND_ADD("sn2", SN76496, 8000000/2)
225225   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.75)
226226   MCFG_SOUND_CONFIG(psg_intf)
227227MACHINE_CONFIG_END
trunk/src/mame/drivers/kontest.c
r18237r18238
167167
168168static ADDRESS_MAP_START( kontest_io, AS_IO, 8, kontest_state )
169169   ADDRESS_MAP_GLOBAL_MASK(0xff)
170   AM_RANGE(0x00, 0x00) AM_DEVWRITE("sn1", sn76489a_new_device, write)
171   AM_RANGE(0x04, 0x04) AM_DEVWRITE("sn2", sn76489a_new_device, write)
170   AM_RANGE(0x00, 0x00) AM_DEVWRITE("sn1", sn76489a_device, write)
171   AM_RANGE(0x04, 0x04) AM_DEVWRITE("sn2", sn76489a_device, write)
172172   AM_RANGE(0x08, 0x08) AM_WRITE(control_w)
173173   AM_RANGE(0x0c, 0x0c) AM_READ_PORT("IN0")
174174   AM_RANGE(0x0d, 0x0d) AM_READ_PORT("IN1")
r18237r18238
280280   /* sound hardware */
281281   MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker")
282282
283   MCFG_SOUND_ADD("sn1", SN76489A_NEW, MAIN_CLOCK/16)
283   MCFG_SOUND_ADD("sn1", SN76489A, MAIN_CLOCK/16)
284284   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "rspeaker", 0.50)
285285   MCFG_SOUND_CONFIG(psg_intf)
286286
287   MCFG_SOUND_ADD("sn2", SN76489A_NEW, MAIN_CLOCK/16)
287   MCFG_SOUND_ADD("sn2", SN76489A, MAIN_CLOCK/16)
288288   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "lspeaker", 0.50)
289289   MCFG_SOUND_CONFIG(psg_intf)
290290MACHINE_CONFIG_END
trunk/src/mame/drivers/jantotsu.c
r18237r18238
333333
334334static ADDRESS_MAP_START( jantotsu_io, AS_IO, 8, jantotsu_state )
335335   ADDRESS_MAP_GLOBAL_MASK(0xff)
336   AM_RANGE(0x00, 0x00) AM_READ_PORT("DSW1") AM_DEVWRITE("sn1", sn76489a_new_device, write)
337   AM_RANGE(0x01, 0x01) AM_READ(jantotsu_dsw2_r) AM_DEVWRITE("sn2", sn76489a_new_device, write)
336   AM_RANGE(0x00, 0x00) AM_READ_PORT("DSW1") AM_DEVWRITE("sn1", sn76489a_device, write)
337   AM_RANGE(0x01, 0x01) AM_READ(jantotsu_dsw2_r) AM_DEVWRITE("sn2", sn76489a_device, write)
338338   AM_RANGE(0x02, 0x03) AM_WRITE(jan_adpcm_w)
339339   AM_RANGE(0x04, 0x04) AM_READWRITE(jantotsu_mux_r, jantotsu_mux_w)
340340   AM_RANGE(0x07, 0x07) AM_WRITE(bankaddr_w)
r18237r18238
536536   /* sound hardware */
537537   MCFG_SPEAKER_STANDARD_MONO("mono")
538538
539   MCFG_SOUND_ADD("sn1", SN76489A_NEW, MAIN_CLOCK/4)
539   MCFG_SOUND_ADD("sn1", SN76489A, MAIN_CLOCK/4)
540540   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50)
541541   MCFG_SOUND_CONFIG(psg_intf)
542542
543   MCFG_SOUND_ADD("sn2", SN76489A_NEW, MAIN_CLOCK/4)
543   MCFG_SOUND_ADD("sn2", SN76489A, MAIN_CLOCK/4)
544544   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50)
545545   MCFG_SOUND_CONFIG(psg_intf)
546546
trunk/src/mame/drivers/ladybug.c
r18237r18238
134134   AM_RANGE(0x9002, 0x9002) AM_READ_PORT("DSW0")
135135   AM_RANGE(0x9003, 0x9003) AM_READ_PORT("DSW1")
136136   AM_RANGE(0xa000, 0xa000) AM_WRITE(ladybug_flipscreen_w)
137   AM_RANGE(0xb000, 0xbfff) AM_DEVWRITE("sn1", sn76489_new_device, write)
138   AM_RANGE(0xc000, 0xcfff) AM_DEVWRITE("sn2", sn76489_new_device, write)
137   AM_RANGE(0xb000, 0xbfff) AM_DEVWRITE("sn1", sn76489_device, write)
138   AM_RANGE(0xc000, 0xcfff) AM_DEVWRITE("sn2", sn76489_device, write)
139139   AM_RANGE(0xd000, 0xd3ff) AM_RAM_WRITE(ladybug_videoram_w) AM_SHARE("videoram")
140140   AM_RANGE(0xd400, 0xd7ff) AM_RAM_WRITE(ladybug_colorram_w) AM_SHARE("colorram")
141141   AM_RANGE(0xe000, 0xe000) AM_READ_PORT("IN2")
r18237r18238
172172
173173static ADDRESS_MAP_START( sraider_cpu2_io_map, AS_IO, 8, ladybug_state )
174174   ADDRESS_MAP_GLOBAL_MASK(0xff)
175   AM_RANGE(0x00, 0x00) AM_DEVWRITE("sn1", sn76489_new_device, write)
176   AM_RANGE(0x08, 0x08) AM_DEVWRITE("sn2", sn76489_new_device, write)
177   AM_RANGE(0x10, 0x10) AM_DEVWRITE("sn3", sn76489_new_device, write)
178   AM_RANGE(0x18, 0x18) AM_DEVWRITE("sn4", sn76489_new_device, write)
179   AM_RANGE(0x20, 0x20) AM_DEVWRITE("sn5", sn76489_new_device, write)
175   AM_RANGE(0x00, 0x00) AM_DEVWRITE("sn1", sn76489_device, write)
176   AM_RANGE(0x08, 0x08) AM_DEVWRITE("sn2", sn76489_device, write)
177   AM_RANGE(0x10, 0x10) AM_DEVWRITE("sn3", sn76489_device, write)
178   AM_RANGE(0x18, 0x18) AM_DEVWRITE("sn4", sn76489_device, write)
179   AM_RANGE(0x20, 0x20) AM_DEVWRITE("sn5", sn76489_device, write)
180180   AM_RANGE(0x28, 0x3f) AM_WRITE(sraider_misc_w)  // lots unknown
181181ADDRESS_MAP_END
182182
r18237r18238
799799   /* sound hardware */
800800   MCFG_SPEAKER_STANDARD_MONO("mono")
801801
802   MCFG_SOUND_ADD("sn1", SN76489_NEW, 4000000)
802   MCFG_SOUND_ADD("sn1", SN76489, 4000000)
803803   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
804804   MCFG_SOUND_CONFIG(psg_intf)
805805
806   MCFG_SOUND_ADD("sn2", SN76489_NEW, 4000000)
806   MCFG_SOUND_ADD("sn2", SN76489, 4000000)
807807   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
808808   MCFG_SOUND_CONFIG(psg_intf)
809809MACHINE_CONFIG_END
r18237r18238
842842   /* sound hardware */
843843   MCFG_SPEAKER_STANDARD_MONO("mono")
844844
845   MCFG_SOUND_ADD("sn1", SN76489_NEW, 4000000)
845   MCFG_SOUND_ADD("sn1", SN76489, 4000000)
846846   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
847847   MCFG_SOUND_CONFIG(psg_intf)
848848
849   MCFG_SOUND_ADD("sn2", SN76489_NEW, 4000000)
849   MCFG_SOUND_ADD("sn2", SN76489, 4000000)
850850   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
851851   MCFG_SOUND_CONFIG(psg_intf)
852852
853   MCFG_SOUND_ADD("sn3", SN76489_NEW, 4000000)
853   MCFG_SOUND_ADD("sn3", SN76489, 4000000)
854854   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
855855   MCFG_SOUND_CONFIG(psg_intf)
856856
857   MCFG_SOUND_ADD("sn4", SN76489_NEW, 4000000)
857   MCFG_SOUND_ADD("sn4", SN76489, 4000000)
858858   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
859859   MCFG_SOUND_CONFIG(psg_intf)
860860
861   MCFG_SOUND_ADD("sn5", SN76489_NEW, 4000000)
861   MCFG_SOUND_ADD("sn5", SN76489, 4000000)
862862   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
863863   MCFG_SOUND_CONFIG(psg_intf)
864864MACHINE_CONFIG_END
trunk/src/mame/drivers/tp84.c
r18237r18238
192192   AM_RANGE(0x8000, 0x8000) AM_READ(tp84_sh_timer_r)
193193   AM_RANGE(0xa000, 0xa1ff) AM_WRITE(tp84_filter_w)
194194   AM_RANGE(0xc000, 0xc000) AM_WRITENOP
195   AM_RANGE(0xc001, 0xc001) AM_DEVWRITE("y2404_1", y2404_new_device, write)
196   AM_RANGE(0xc003, 0xc003) AM_DEVWRITE("y2404_2", y2404_new_device, write)
197   AM_RANGE(0xc004, 0xc004) AM_DEVWRITE("y2404_3", y2404_new_device, write)
195   AM_RANGE(0xc001, 0xc001) AM_DEVWRITE("y2404_1", y2404_device, write)
196   AM_RANGE(0xc003, 0xc003) AM_DEVWRITE("y2404_2", y2404_device, write)
197   AM_RANGE(0xc004, 0xc004) AM_DEVWRITE("y2404_3", y2404_device, write)
198198ADDRESS_MAP_END
199199
200200
r18237r18238
336336   /* audio hardware */
337337   MCFG_SPEAKER_STANDARD_MONO("mono")
338338
339   MCFG_SOUND_ADD("y2404_1", Y2404_NEW, XTAL_14_31818MHz/8) /* verified on pcb */
339   MCFG_SOUND_ADD("y2404_1", Y2404, XTAL_14_31818MHz/8) /* verified on pcb */
340340   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "filter1", 0.75)
341341   MCFG_SOUND_CONFIG(psg_intf)
342342
343   MCFG_SOUND_ADD("y2404_2", Y2404_NEW, XTAL_14_31818MHz/8) /* verified on pcb */
343   MCFG_SOUND_ADD("y2404_2", Y2404, XTAL_14_31818MHz/8) /* verified on pcb */
344344   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "filter2", 0.75)
345345   MCFG_SOUND_CONFIG(psg_intf)
346346
347   MCFG_SOUND_ADD("y2404_3", Y2404_NEW, XTAL_14_31818MHz/8) /* verified on pcb */
347   MCFG_SOUND_ADD("y2404_3", Y2404, XTAL_14_31818MHz/8) /* verified on pcb */
348348   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "filter3", 0.75)
349349   MCFG_SOUND_CONFIG(psg_intf)
350350
trunk/src/mame/drivers/strnskil.c
r18237r18238
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("sn1", sn76496_new_device, write)
107   AM_RANGE(0xd802, 0xd802) AM_DEVWRITE("sn2", sn76496_new_device, write)
106   AM_RANGE(0xd801, 0xd801) AM_DEVWRITE("sn1", sn76496_device, write)
107   AM_RANGE(0xd802, 0xd802) AM_DEVWRITE("sn2", sn76496_device, write)
108108ADDRESS_MAP_END
109109
110110
r18237r18238
375375   /* sound hardware */
376376   MCFG_SPEAKER_STANDARD_MONO("mono")
377377
378   MCFG_SOUND_ADD("sn1", SN76496_NEW, 8000000/4)
378   MCFG_SOUND_ADD("sn1", SN76496, 8000000/4)
379379   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.75)
380380   MCFG_SOUND_CONFIG(psg_intf)
381381
382   MCFG_SOUND_ADD("sn2", SN76496_NEW, 8000000/2)
382   MCFG_SOUND_ADD("sn2", SN76496, 8000000/2)
383383   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.75)
384384   MCFG_SOUND_CONFIG(psg_intf)
385385MACHINE_CONFIG_END
trunk/src/mame/drivers/hyperspt.c
r18237r18238
320320   MCFG_DAC_ADD("dac")
321321   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.80)
322322
323   MCFG_SOUND_ADD("snsnd", SN76496_NEW, XTAL_14_31818MHz/8) /* verified on pcb */
323   MCFG_SOUND_ADD("snsnd", SN76496, XTAL_14_31818MHz/8) /* verified on pcb */
324324   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
325325   MCFG_SOUND_CONFIG(psg_intf)
326326
trunk/src/mame/drivers/mrdo.c
r18237r18238
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("u8106_1", u8106_new_device, write)
50   AM_RANGE(0x9802, 0x9802) AM_DEVWRITE("u8106_2", u8106_new_device, write)
49   AM_RANGE(0x9801, 0x9801) AM_DEVWRITE("u8106_1", u8106_device, write)
50   AM_RANGE(0x9802, 0x9802) AM_DEVWRITE("u8106_2", u8106_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")
r18237r18238
200200   /* sound hardware */
201201   MCFG_SPEAKER_STANDARD_MONO("mono")
202202
203   MCFG_SOUND_ADD("u8106_1", U8106_NEW, MAIN_CLOCK/2)   /* sn76489-equivalent?, Verified */
203   MCFG_SOUND_ADD("u8106_1", U8106, MAIN_CLOCK/2)   /* sn76489-equivalent?, Verified */
204204   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50)
205205   MCFG_SOUND_CONFIG(psg_intf)
206206
207   MCFG_SOUND_ADD("u8106_2", U8106_NEW, MAIN_CLOCK/2)   /* sn76489-equivalent?, Verified */
207   MCFG_SOUND_ADD("u8106_2", U8106, MAIN_CLOCK/2)   /* sn76489-equivalent?, Verified */
208208   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50)
209209   MCFG_SOUND_CONFIG(psg_intf)
210210MACHINE_CONFIG_END
trunk/src/mame/drivers/yiear.c
r18237r18238
308308
309309   MCFG_SOUND_ADD("trackfld_audio", TRACKFLD_AUDIO, 0)
310310
311   MCFG_SOUND_ADD("snsnd", SN76489A_NEW, XTAL_18_432MHz/12)   /* verified on pcb */
311   MCFG_SOUND_ADD("snsnd", SN76489A, XTAL_18_432MHz/12)   /* verified on pcb */
312312   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
313313   MCFG_SOUND_CONFIG(psg_intf)
314314
trunk/src/mame/drivers/sbasketb.c
r18237r18238
223223   MCFG_DAC_ADD("dac")
224224   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.80)
225225
226   MCFG_SOUND_ADD("snsnd", SN76489_NEW, XTAL_14_31818MHz / 8)
226   MCFG_SOUND_ADD("snsnd", SN76489, XTAL_14_31818MHz / 8)
227227   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
228228   MCFG_SOUND_CONFIG(psg_intf)
229229
trunk/src/mame/drivers/mjkjidai.c
r18237r18238
233233   AM_RANGE(0x10, 0x10) AM_WRITE(mjkjidai_ctrl_w)   // rom bank, coin counter, flip screen etc
234234   AM_RANGE(0x11, 0x11) AM_READ_PORT("IN0")
235235   AM_RANGE(0x12, 0x12) AM_READ_PORT("IN1")
236   AM_RANGE(0x20, 0x20) AM_DEVWRITE("sn1", sn76489_new_device, write)
237   AM_RANGE(0x30, 0x30) AM_DEVWRITE("sn2", sn76489_new_device, write)
236   AM_RANGE(0x20, 0x20) AM_DEVWRITE("sn1", sn76489_device, write)
237   AM_RANGE(0x30, 0x30) AM_DEVWRITE("sn2", sn76489_device, write)
238238   AM_RANGE(0x40, 0x40) AM_WRITE(adpcm_w)
239239ADDRESS_MAP_END
240240
r18237r18238
465465   /* sound hardware */
466466   MCFG_SPEAKER_STANDARD_MONO("mono")
467467
468   MCFG_SOUND_ADD("sn1", SN76489_NEW, 10000000/4)
468   MCFG_SOUND_ADD("sn1", SN76489, 10000000/4)
469469   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50)
470470   MCFG_SOUND_CONFIG(psg_intf)
471471
472   MCFG_SOUND_ADD("sn2", SN76489_NEW, 10000000/4)
472   MCFG_SOUND_ADD("sn2", SN76489, 10000000/4)
473473   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50)
474474   MCFG_SOUND_CONFIG(psg_intf)
475475
trunk/src/mame/drivers/jailbrek.c
r18237r18238
142142   AM_RANGE(0x2043, 0x2043) AM_WRITENOP /* ??? */
143143   AM_RANGE(0x2044, 0x2044) AM_WRITE(ctrl_w) /* irq, nmi enable, screen flip */
144144   AM_RANGE(0x3000, 0x307f) AM_RAM /* related to sprites? */
145   AM_RANGE(0x3100, 0x3100) AM_READ_PORT("DSW2") AM_DEVWRITE("snsnd", sn76489a_new_device, write)
145   AM_RANGE(0x3100, 0x3100) AM_READ_PORT("DSW2") AM_DEVWRITE("snsnd", sn76489a_device, write)
146146   AM_RANGE(0x3200, 0x3200) AM_READ_PORT("DSW3") AM_WRITENOP /* mirror of the previous? */
147147   AM_RANGE(0x3300, 0x3300) AM_READ_PORT("SYSTEM") AM_WRITE(watchdog_reset_w)
148148   AM_RANGE(0x3301, 0x3301) AM_READ_PORT("P1")
r18237r18238
285285   /* sound hardware */
286286   MCFG_SPEAKER_STANDARD_MONO("mono")
287287
288   MCFG_SOUND_ADD("snsnd", SN76489A_NEW, MASTER_CLOCK/12)
288   MCFG_SOUND_ADD("snsnd", SN76489A, MASTER_CLOCK/12)
289289   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
290290   MCFG_SOUND_CONFIG(psg_intf)
291291
trunk/src/mame/drivers/freekick.c
r18237r18238
179179   AM_RANGE(0xe800, 0xe800) AM_READ_PORT("IN1")
180180   AM_RANGE(0xf000, 0xf000) AM_READ_PORT("DSW1") AM_WRITE(pbillrd_bankswitch_w)
181181   AM_RANGE(0xf800, 0xf800) AM_READ_PORT("DSW2")
182   AM_RANGE(0xfc00, 0xfc00) AM_DEVWRITE("sn1", sn76489a_new_device, write)
183   AM_RANGE(0xfc01, 0xfc01) AM_DEVWRITE("sn2", sn76489a_new_device, write)
184   AM_RANGE(0xfc02, 0xfc02) AM_DEVWRITE("sn3", sn76489a_new_device, write)
185   AM_RANGE(0xfc03, 0xfc03) AM_DEVWRITE("sn4", sn76489a_new_device, write)
182   AM_RANGE(0xfc00, 0xfc00) AM_DEVWRITE("sn1", sn76489a_device, write)
183   AM_RANGE(0xfc01, 0xfc01) AM_DEVWRITE("sn2", sn76489a_device, write)
184   AM_RANGE(0xfc02, 0xfc02) AM_DEVWRITE("sn3", sn76489a_device, write)
185   AM_RANGE(0xfc03, 0xfc03) AM_DEVWRITE("sn4", sn76489a_device, write)
186186ADDRESS_MAP_END
187187
188188static ADDRESS_MAP_START( freekickb_map, AS_PROGRAM, 8, freekick_state )
r18237r18238
199199   AM_RANGE(0xf802, 0xf803) AM_WRITE(coin_w)
200200   AM_RANGE(0xf804, 0xf804) AM_WRITE(nmi_enable_w)
201201   AM_RANGE(0xf806, 0xf806) AM_WRITE(spinner_select_w)
202   AM_RANGE(0xfc00, 0xfc00) AM_DEVWRITE("sn1", sn76489a_new_device, write)
203   AM_RANGE(0xfc01, 0xfc01) AM_DEVWRITE("sn2", sn76489a_new_device, write)
204   AM_RANGE(0xfc02, 0xfc02) AM_DEVWRITE("sn3", sn76489a_new_device, write)
205   AM_RANGE(0xfc03, 0xfc03) AM_DEVWRITE("sn4", sn76489a_new_device, write)
202   AM_RANGE(0xfc00, 0xfc00) AM_DEVWRITE("sn1", sn76489a_device, write)
203   AM_RANGE(0xfc01, 0xfc01) AM_DEVWRITE("sn2", sn76489a_device, write)
204   AM_RANGE(0xfc02, 0xfc02) AM_DEVWRITE("sn3", sn76489a_device, write)
205   AM_RANGE(0xfc03, 0xfc03) AM_DEVWRITE("sn4", sn76489a_device, write)
206206ADDRESS_MAP_END
207207
208208static ADDRESS_MAP_START( gigas_map, AS_PROGRAM, 8, freekick_state )
r18237r18238
218218   AM_RANGE(0xe800, 0xe800) AM_READ_PORT("IN1")
219219   AM_RANGE(0xf000, 0xf000) AM_READ_PORT("DSW1") AM_WRITENOP //bankswitch ?
220220   AM_RANGE(0xf800, 0xf800) AM_READ_PORT("DSW2")
221   AM_RANGE(0xfc00, 0xfc00) AM_DEVWRITE("sn1", sn76489a_new_device, write)
222   AM_RANGE(0xfc01, 0xfc01) AM_DEVWRITE("sn2", sn76489a_new_device, write)
223   AM_RANGE(0xfc02, 0xfc02) AM_DEVWRITE("sn3", sn76489a_new_device, write)
224   AM_RANGE(0xfc03, 0xfc03) AM_DEVWRITE("sn4", sn76489a_new_device, write)
221   AM_RANGE(0xfc00, 0xfc00) AM_DEVWRITE("sn1", sn76489a_device, write)
222   AM_RANGE(0xfc01, 0xfc01) AM_DEVWRITE("sn2", sn76489a_device, write)
223   AM_RANGE(0xfc02, 0xfc02) AM_DEVWRITE("sn3", sn76489a_device, write)
224   AM_RANGE(0xfc03, 0xfc03) AM_DEVWRITE("sn4", sn76489a_device, write)
225225ADDRESS_MAP_END
226226
227227static ADDRESS_MAP_START( gigas_io_map, AS_IO, 8, freekick_state )
r18237r18238
654654   /* sound hardware */
655655   MCFG_SPEAKER_STANDARD_MONO("mono")
656656
657   MCFG_SOUND_ADD("sn1", SN76489A_NEW, XTAL_12MHz/4)
657   MCFG_SOUND_ADD("sn1", SN76489A, XTAL_12MHz/4)
658658   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50)
659659   MCFG_SOUND_CONFIG(psg_intf)
660660
661   MCFG_SOUND_ADD("sn2", SN76489A_NEW, XTAL_12MHz/4)
661   MCFG_SOUND_ADD("sn2", SN76489A, XTAL_12MHz/4)
662662   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50)
663663   MCFG_SOUND_CONFIG(psg_intf)
664664
665   MCFG_SOUND_ADD("sn3", SN76489A_NEW, XTAL_12MHz/4)
665   MCFG_SOUND_ADD("sn3", SN76489A, XTAL_12MHz/4)
666666   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50)
667667   MCFG_SOUND_CONFIG(psg_intf)
668668
669   MCFG_SOUND_ADD("sn4", SN76489A_NEW, XTAL_12MHz/4)
669   MCFG_SOUND_ADD("sn4", SN76489A, XTAL_12MHz/4)
670670   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50)
671671   MCFG_SOUND_CONFIG(psg_intf)
672672MACHINE_CONFIG_END
trunk/src/mame/drivers/centiped.c
r18237r18238
968968static ADDRESS_MAP_START( bullsdrt_port_map, AS_IO, 8, centiped_state )
969969   AM_RANGE(0x00, 0x00) AM_WRITE(bullsdrt_sprites_bank_w)
970970   AM_RANGE(0x20, 0x3f) AM_WRITE(bullsdrt_tilesbank_w) AM_SHARE("bullsdrt_bank")
971   AM_RANGE(S2650_DATA_PORT, S2650_DATA_PORT) AM_READ(bullsdrt_data_port_r) AM_DEVWRITE("snsnd", sn76496_new_device, write)
971   AM_RANGE(S2650_DATA_PORT, S2650_DATA_PORT) AM_READ(bullsdrt_data_port_r) AM_DEVWRITE("snsnd", sn76496_device, write)
972972ADDRESS_MAP_END
973973
974974
r18237r18238
19261926   /* sound hardware */
19271927   MCFG_SPEAKER_STANDARD_MONO("mono")
19281928
1929   MCFG_SOUND_ADD("snsnd", SN76496_NEW, 12096000/8)
1929   MCFG_SOUND_ADD("snsnd", SN76496, 12096000/8)
19301930   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
19311931   MCFG_SOUND_CONFIG(psg_intf)
19321932MACHINE_CONFIG_END
trunk/src/mame/drivers/gatron.c
r18237r18238
341341   AM_RANGE(0x0000, 0x5fff) AM_ROM
342342   AM_RANGE(0x6000, 0x63ff) AM_RAM_WRITE(gat_videoram_w) AM_SHARE("videoram")
343343   AM_RANGE(0x8000, 0x87ff) AM_RAM AM_SHARE("nvram")   /* battery backed RAM */
344   AM_RANGE(0xa000, 0xa000) AM_DEVWRITE("snsnd", sn76496_new_device, write)                     /* PSG */
344   AM_RANGE(0xa000, 0xa000) AM_DEVWRITE("snsnd", sn76496_device, write)                     /* PSG */
345345   AM_RANGE(0xe000, 0xe000) AM_WRITE(output_port_0_w)                              /* lamps */
346346ADDRESS_MAP_END
347347
r18237r18238
467467
468468   /* sound hardware */
469469   MCFG_SPEAKER_STANDARD_MONO("mono")
470   MCFG_SOUND_ADD("snsnd", SN76496_NEW, MASTER_CLOCK/8 )   /* 2 MHz, guess */
470   MCFG_SOUND_ADD("snsnd", SN76496, MASTER_CLOCK/8 )   /* 2 MHz, guess */
471471   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 2.00)
472472   MCFG_SOUND_CONFIG(psg_intf)
473473MACHINE_CONFIG_END
trunk/src/mame/drivers/xyonix.c
r18237r18238
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("sn1", sn76496_new_device, write)   /* SN76496 ready signal */
144   AM_RANGE(0x21, 0x21) AM_READNOP AM_DEVWRITE("sn2", sn76496_new_device, write)
143   AM_RANGE(0x20, 0x20) AM_READNOP AM_DEVWRITE("sn1", sn76496_device, write)   /* SN76496 ready signal */
144   AM_RANGE(0x21, 0x21) AM_READNOP AM_DEVWRITE("sn2", sn76496_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 */
r18237r18238
253253   /* sound hardware */
254254   MCFG_SPEAKER_STANDARD_MONO("mono")
255255
256   MCFG_SOUND_ADD("sn1", SN76496_NEW, 16000000/4)
256   MCFG_SOUND_ADD("sn1", SN76496, 16000000/4)
257257   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
258258   MCFG_SOUND_CONFIG(psg_intf)
259259
260   MCFG_SOUND_ADD("sn2", SN76496_NEW, 16000000/4)
260   MCFG_SOUND_ADD("sn2", SN76496, 16000000/4)
261261   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
262262   MCFG_SOUND_CONFIG(psg_intf)
263263MACHINE_CONFIG_END
trunk/src/mame/drivers/drmicro.c
r18237r18238
8383
8484static ADDRESS_MAP_START( io_map, AS_IO, 8, drmicro_state )
8585   ADDRESS_MAP_GLOBAL_MASK(0xff)
86   AM_RANGE(0x00, 0x00) AM_READ_PORT("P1") AM_DEVWRITE("sn1", sn76496_new_device, write)
87   AM_RANGE(0x01, 0x01) AM_READ_PORT("P2") AM_DEVWRITE("sn2", sn76496_new_device, write)
88   AM_RANGE(0x02, 0x02) AM_DEVWRITE("sn3", sn76496_new_device, write)
86   AM_RANGE(0x00, 0x00) AM_READ_PORT("P1") AM_DEVWRITE("sn1", sn76496_device, write)
87   AM_RANGE(0x01, 0x01) AM_READ_PORT("P2") AM_DEVWRITE("sn2", sn76496_device, write)
88   AM_RANGE(0x02, 0x02) AM_DEVWRITE("sn3", sn76496_device, write)
8989   AM_RANGE(0x03, 0x03) AM_READ_PORT("DSW1") AM_WRITE(pcm_set_w)
9090   AM_RANGE(0x04, 0x04) AM_READ_PORT("DSW2") AM_WRITE(nmi_enable_w)
9191   AM_RANGE(0x05, 0x05) AM_NOP // unused? / watchdog?
r18237r18238
282282   /* sound hardware */
283283   MCFG_SPEAKER_STANDARD_MONO("mono")
284284
285   MCFG_SOUND_ADD("sn1", SN76496_NEW, MCLK/4)
285   MCFG_SOUND_ADD("sn1", SN76496, MCLK/4)
286286   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50)
287287   MCFG_SOUND_CONFIG(psg_intf)
288288
289   MCFG_SOUND_ADD("sn2", SN76496_NEW, MCLK/4)
289   MCFG_SOUND_ADD("sn2", SN76496, MCLK/4)
290290   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50)
291291   MCFG_SOUND_CONFIG(psg_intf)
292292
293   MCFG_SOUND_ADD("sn3", SN76496_NEW, MCLK/4)
293   MCFG_SOUND_ADD("sn3", SN76496, MCLK/4)
294294   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50)
295295   MCFG_SOUND_CONFIG(psg_intf)
296296
trunk/src/mame/drivers/system1.c
r18237r18238
770770static ADDRESS_MAP_START( sound_map, AS_PROGRAM, 8, system1_state )
771771   AM_RANGE(0x0000, 0x7fff) AM_ROM
772772   AM_RANGE(0x8000, 0x87ff) AM_MIRROR(0x1800) AM_RAM
773   AM_RANGE(0xa000, 0xa003) AM_MIRROR(0x1fff) AM_DEVWRITE("sn1", sn76489a_new_device, write)
774   AM_RANGE(0xc000, 0xc003) AM_MIRROR(0x1fff) AM_DEVWRITE("sn2", sn76489a_new_device, write)
773   AM_RANGE(0xa000, 0xa003) AM_MIRROR(0x1fff) AM_DEVWRITE("sn1", sn76489a_device, write)
774   AM_RANGE(0xc000, 0xc003) AM_MIRROR(0x1fff) AM_DEVWRITE("sn2", sn76489a_device, write)
775775   AM_RANGE(0xe000, 0xe000) AM_MIRROR(0x1fff) AM_READ(sound_data_r)
776776ADDRESS_MAP_END
777777
r18237r18238
21712171   /* sound hardware */
21722172   MCFG_SPEAKER_STANDARD_MONO("mono")
21732173
2174   MCFG_SOUND_ADD("sn1", SN76489A_NEW, SOUND_CLOCK/4)
2174   MCFG_SOUND_ADD("sn1", SN76489A, SOUND_CLOCK/4)
21752175   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50)
21762176   MCFG_SOUND_CONFIG(psg_intf)
21772177
2178   MCFG_SOUND_ADD("sn2", SN76489A_NEW, SOUND_CLOCK/2)   /* selectable via jumper */
2178   MCFG_SOUND_ADD("sn2", SN76489A, SOUND_CLOCK/2)   /* selectable via jumper */
21792179   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50)
21802180   MCFG_SOUND_CONFIG(psg_intf)
21812181MACHINE_CONFIG_END
trunk/src/mame/drivers/megatech.c
r18237r18238
539539   MCFG_SCREEN_VBLANK_DRIVER(mtech_state, screen_eof_mtnew)
540540
541541   /* sound hardware */
542   MCFG_SOUND_ADD("sn2", SN76496_NEW, MASTER_CLOCK/15)
542   MCFG_SOUND_ADD("sn2", SN76496, MASTER_CLOCK/15)
543543   MCFG_SOUND_CONFIG(psg_intf)
544544   MCFG_SOUND_ROUTE(0, "lspeaker", 0.50)
545545   MCFG_SOUND_ROUTE(1, "rspeaker", 0.50)
trunk/src/mame/drivers/appoooh.c
r18237r18238
230230
231231static ADDRESS_MAP_START( main_portmap, AS_IO, 8, appoooh_state )
232232   ADDRESS_MAP_GLOBAL_MASK(0xff)
233   AM_RANGE(0x00, 0x00) AM_READ_PORT("P1") AM_DEVWRITE("sn1", sn76489_new_device, write)
234   AM_RANGE(0x01, 0x01) AM_READ_PORT("P2") AM_DEVWRITE("sn2", sn76489_new_device, write)
235   AM_RANGE(0x02, 0x02) AM_DEVWRITE("sn3", sn76489_new_device, write)
233   AM_RANGE(0x00, 0x00) AM_READ_PORT("P1") AM_DEVWRITE("sn1", sn76489_device, write)
234   AM_RANGE(0x01, 0x01) AM_READ_PORT("P2") AM_DEVWRITE("sn2", sn76489_device, write)
235   AM_RANGE(0x02, 0x02) AM_DEVWRITE("sn3", sn76489_device, write)
236236   AM_RANGE(0x03, 0x03) AM_READ_PORT("DSW1") AM_WRITE(appoooh_adpcm_w)
237237   AM_RANGE(0x04, 0x04) AM_READ_PORT("BUTTON3") AM_WRITE(appoooh_out_w)
238238   AM_RANGE(0x05, 0x05) AM_WRITE(appoooh_scroll_w) /* unknown */
r18237r18238
448448   /* sound hardware */
449449   MCFG_SPEAKER_STANDARD_MONO("mono")
450450
451   MCFG_SOUND_ADD("sn1", SN76489_NEW, 18432000/6)
451   MCFG_SOUND_ADD("sn1", SN76489, 18432000/6)
452452   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.30)
453453   MCFG_SOUND_CONFIG(psg_intf)
454454
455   MCFG_SOUND_ADD("sn2", SN76489_NEW, 18432000/6)
455   MCFG_SOUND_ADD("sn2", SN76489, 18432000/6)
456456   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.30)
457457   MCFG_SOUND_CONFIG(psg_intf)
458458
459   MCFG_SOUND_ADD("sn3", SN76489_NEW, 18432000/6)
459   MCFG_SOUND_ADD("sn3", SN76489, 18432000/6)
460460   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.30)
461461   MCFG_SOUND_CONFIG(psg_intf)
462462
trunk/src/mame/drivers/jpmmps.c
r18237r18238
182182
183183   MCFG_SPEAKER_STANDARD_MONO("mono")
184184
185   MCFG_SOUND_ADD("sn", SN76489_NEW, SOUND_CLOCK)
185   MCFG_SOUND_ADD("sn", SN76489, SOUND_CLOCK)
186186   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00)
187187   MCFG_SOUND_CONFIG(psg_intf)
188188
trunk/src/mame/drivers/guab.c
r18237r18238
8080      m_sn(*this, "snsnd") { }
8181
8282   /* devices */
83   required_device<sn76489_new_device> m_sn;
83   required_device<sn76489_device> m_sn;
8484
8585   struct ef9369 m_pal;
8686   emu_timer *m_fdc_timer;
r18237r18238
833833   MCFG_SPEAKER_STANDARD_MONO("mono")
834834
835835   /* TODO: Verify clock */
836   MCFG_SOUND_ADD("snsnd", SN76489_NEW, 2000000)
836   MCFG_SOUND_ADD("snsnd", SN76489, 2000000)
837837   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50)
838838   MCFG_SOUND_CONFIG(psg_intf)
839839
trunk/src/mame/drivers/megaplay.c
r18237r18238
602602/* basically from src/drivers/segasyse.c */
603603static ADDRESS_MAP_START( megaplay_bios_io_map, AS_IO, 8, mplay_state )
604604   ADDRESS_MAP_GLOBAL_MASK(0xff)
605   AM_RANGE(0x7f, 0x7f) AM_DEVWRITE("sn2", sn76496_new_device, write)   /* SN76489 */
605   AM_RANGE(0x7f, 0x7f) AM_DEVWRITE("sn2", sn76496_device, write)   /* SN76489 */
606606   AM_RANGE(0xbe, 0xbe) AM_READWRITE_LEGACY(sms_vdp_data_r, sms_vdp_data_w)   /* VDP */
607607   AM_RANGE(0xbf, 0xbf) AM_READWRITE_LEGACY(sms_vdp_ctrl_r, sms_vdp_ctrl_w)   /* VDP */
608608ADDRESS_MAP_END
r18237r18238
663663
664664   MCFG_QUANTUM_TIME(attotime::from_hz(6000))
665665
666   MCFG_SOUND_ADD("sn2", SN76496_NEW, MASTER_CLOCK/15)
666   MCFG_SOUND_ADD("sn2", SN76496, MASTER_CLOCK/15)
667667   MCFG_SOUND_CONFIG(psg_intf)
668668   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "lspeaker", 0.25) /* 3.58 MHz */
669669   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "rspeaker",0.25) /* 3.58 MHz */
trunk/src/mame/drivers/segac2.c
r18237r18238
14131413   MCFG_SOUND_ROUTE(0, "mono", 0.50)
14141414   /* right channel not connected */
14151415
1416   MCFG_SOUND_ADD("snsnd", SN76496_NEW, XL2_CLOCK/15)
1416   MCFG_SOUND_ADD("snsnd", SN76496, XL2_CLOCK/15)
14171417   MCFG_SOUND_CONFIG(psg_intf)
14181418   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50)
14191419MACHINE_CONFIG_END
trunk/src/mame/drivers/gberet.c
r18237r18238
217217   AM_RANGE(0xe900, 0xe9ff) AM_RAM AM_SHARE("spriteram")
218218   AM_RANGE(0xf000, 0xf000) AM_WRITENOP // coin counter not supported
219219   AM_RANGE(0xf200, 0xf200) AM_READ_PORT("DSW2")
220   AM_RANGE(0xf400, 0xf400) AM_DEVWRITE("snsnd", sn76489a_new_device, write)
220   AM_RANGE(0xf400, 0xf400) AM_DEVWRITE("snsnd", sn76489a_device, write)
221221   AM_RANGE(0xf600, 0xf600) AM_READ_PORT("P2")
222222   AM_RANGE(0xf601, 0xf601) AM_READ_PORT("DSW1")
223223   AM_RANGE(0xf602, 0xf602) AM_READ_PORT("P1")
r18237r18238
444444   /* sound hardware */
445445   MCFG_SPEAKER_STANDARD_MONO("mono")
446446
447   MCFG_SOUND_ADD("snsnd", SN76489A_NEW, XTAL_18_432MHz/12) /* type verified on real and bootleg pcb */
447   MCFG_SOUND_ADD("snsnd", SN76489A, XTAL_18_432MHz/12) /* type verified on real and bootleg pcb */
448448   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
449449   MCFG_SOUND_CONFIG(psg_intf)
450450MACHINE_CONFIG_END
r18237r18238
484484   /* sound hardware */
485485   MCFG_SPEAKER_STANDARD_MONO("mono")
486486
487   MCFG_SOUND_ADD("snsnd", SN76489A_NEW, XTAL_20MHz/12) // divider guessed
487   MCFG_SOUND_ADD("snsnd", SN76489A, XTAL_20MHz/12) // divider guessed
488488   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
489489   MCFG_SOUND_CONFIG(psg_intf)
490490MACHINE_CONFIG_END
trunk/src/mame/drivers/atetris.c
r18237r18238
217217   AM_RANGE(0x1000, 0x1fff) AM_RAM_WRITE(atetris_videoram_w) AM_SHARE("videoram")
218218   AM_RANGE(0x2000, 0x20ff) AM_RAM_WRITE(paletteram_RRRGGGBB_byte_w) AM_SHARE("paletteram")
219219   AM_RANGE(0x2400, 0x25ff) AM_RAM_WRITE(nvram_w) AM_SHARE("nvram")
220   AM_RANGE(0x2802, 0x2802) AM_DEVWRITE("sn1", sn76496_new_device, write)
221   AM_RANGE(0x2804, 0x2804) AM_DEVWRITE("sn2", sn76496_new_device, write)
222   AM_RANGE(0x2806, 0x2806) AM_DEVWRITE("sn3", sn76496_new_device, write)
220   AM_RANGE(0x2802, 0x2802) AM_DEVWRITE("sn1", sn76496_device, write)
221   AM_RANGE(0x2804, 0x2804) AM_DEVWRITE("sn2", sn76496_device, write)
222   AM_RANGE(0x2806, 0x2806) AM_DEVWRITE("sn3", sn76496_device, write)
223223   AM_RANGE(0x2808, 0x2808) AM_READ_PORT("IN0")
224224   AM_RANGE(0x2818, 0x2818) AM_READ_PORT("IN1")
225225   AM_RANGE(0x3000, 0x3000) AM_WRITE(watchdog_reset_w)
r18237r18238
391391   /* sound hardware */
392392   MCFG_SPEAKER_STANDARD_MONO("mono")
393393
394   MCFG_SOUND_ADD("sn1", SN76496_NEW, BOOTLEG_CLOCK/8)
394   MCFG_SOUND_ADD("sn1", SN76496, BOOTLEG_CLOCK/8)
395395   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50)
396396   MCFG_SOUND_CONFIG(psg_intf)
397397
398   MCFG_SOUND_ADD("sn2", SN76496_NEW, BOOTLEG_CLOCK/8)
398   MCFG_SOUND_ADD("sn2", SN76496, BOOTLEG_CLOCK/8)
399399   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50)
400400   MCFG_SOUND_CONFIG(psg_intf)
401401
402   MCFG_SOUND_ADD("sn3", SN76496_NEW, BOOTLEG_CLOCK/8)
402   MCFG_SOUND_ADD("sn3", SN76496, BOOTLEG_CLOCK/8)
403403   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50)
404404   MCFG_SOUND_CONFIG(psg_intf)
405405MACHINE_CONFIG_END
trunk/src/mame/drivers/pacman.c
r18237r18238
13081308
13091309static ADDRESS_MAP_START( vanvan_portmap, AS_IO, 8, pacman_state )
13101310   ADDRESS_MAP_GLOBAL_MASK(0xff)
1311   AM_RANGE(0x01, 0x01) AM_DEVWRITE("namco", sn76496_new_device, write)
1312   AM_RANGE(0x02, 0x02) AM_DEVWRITE("sn2", sn76496_new_device, write)
1311   AM_RANGE(0x01, 0x01) AM_DEVWRITE("namco", sn76496_device, write)
1312   AM_RANGE(0x02, 0x02) AM_DEVWRITE("sn2", sn76496_device, write)
13131313ADDRESS_MAP_END
13141314
13151315static ADDRESS_MAP_START( dremshpr_portmap, AS_IO, 8, pacman_state )
r18237r18238
13471347ADDRESS_MAP_END
13481348
13491349static ADDRESS_MAP_START( s2650games_writeport, AS_IO, 8, pacman_state )
1350   AM_RANGE(S2650_DATA_PORT, S2650_DATA_PORT) AM_DEVWRITE("namco", sn76496_new_device, write)
1350   AM_RANGE(S2650_DATA_PORT, S2650_DATA_PORT) AM_DEVWRITE("namco", sn76496_device, write)
13511351ADDRESS_MAP_END
13521352
13531353static ADDRESS_MAP_START( drivfrcp_portmap, AS_IO, 8, pacman_state )
r18237r18238
34183418   MCFG_SCREEN_VISIBLE_AREA(2*8, 34*8-1, 0*8, 28*8-1)
34193419
34203420   /* sound hardware */
3421   MCFG_SOUND_REPLACE("namco", SN76496_NEW, 1789750)
3421   MCFG_SOUND_REPLACE("namco", SN76496, 1789750)
34223422   MCFG_SOUND_CONFIG(psg_intf)
34233423   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.75)
3424   MCFG_SOUND_ADD("sn2", SN76496_NEW, 1789750)
3424   MCFG_SOUND_ADD("sn2", SN76496, 1789750)
34253425   MCFG_SOUND_CONFIG(psg_intf)
34263426   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.75)
34273427MACHINE_CONFIG_END
r18237r18238
34593459   MCFG_VIDEO_START_OVERRIDE(pacman_state,s2650games)
34603460
34613461   /* sound hardware */
3462   MCFG_SOUND_REPLACE("namco", SN76496_NEW, MASTER_CLOCK/6)   /* 1H */
3462   MCFG_SOUND_REPLACE("namco", SN76496, MASTER_CLOCK/6)   /* 1H */
34633463   MCFG_SOUND_CONFIG(psg_intf)
34643464   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.75)
34653465MACHINE_CONFIG_END
trunk/src/mame/drivers/suprloco.c
r18237r18238
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("sn1", sn76496_new_device, write)
49   AM_RANGE(0xc000, 0xc003) AM_DEVWRITE("sn2", sn76496_new_device, write)
48   AM_RANGE(0xa000, 0xa003) AM_DEVWRITE("sn1", sn76496_device, write)
49   AM_RANGE(0xc000, 0xc003) AM_DEVWRITE("sn2", sn76496_device, write)
5050   AM_RANGE(0xe000, 0xe000) AM_READ(soundlatch_byte_r)
5151ADDRESS_MAP_END
5252
r18237r18238
192192   /* sound hardware */
193193   MCFG_SPEAKER_STANDARD_MONO("mono")
194194
195   MCFG_SOUND_ADD("sn1", SN76496_NEW, 4000000)
195   MCFG_SOUND_ADD("sn1", SN76496, 4000000)
196196   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
197197   MCFG_SOUND_CONFIG(psg_intf)
198198
199   MCFG_SOUND_ADD("sn2", SN76496_NEW, 2000000)
199   MCFG_SOUND_ADD("sn2", SN76496, 2000000)
200200   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
201201   MCFG_SOUND_CONFIG(psg_intf)
202202MACHINE_CONFIG_END
trunk/src/mame/drivers/circusc.c
r18237r18238
378378   /* sound hardware */
379379   MCFG_SPEAKER_STANDARD_MONO("mono")
380380
381   MCFG_SOUND_ADD("sn1", SN76496_NEW, XTAL_14_31818MHz/8)
381   MCFG_SOUND_ADD("sn1", SN76496, XTAL_14_31818MHz/8)
382382   MCFG_SOUND_CONFIG(psg_intf)
383383   MCFG_SOUND_ROUTE_EX(0, "fltdisc", 1.0, 0)
384384
385   MCFG_SOUND_ADD("sn2", SN76496_NEW, XTAL_14_31818MHz/8)
385   MCFG_SOUND_ADD("sn2", SN76496, XTAL_14_31818MHz/8)
386386   MCFG_SOUND_CONFIG(psg_intf)
387387   MCFG_SOUND_ROUTE_EX(0, "fltdisc", 1.0, 1)
388388
trunk/src/mame/drivers/kncljoe.c
r18237r18238
5454   AM_RANGE(0xd804, 0xd804) AM_READ_PORT("DSWB")
5555   AM_RANGE(0xd800, 0xd800) AM_WRITE(sound_cmd_w)
5656   AM_RANGE(0xd801, 0xd801) AM_WRITE(kncljoe_control_w)
57   AM_RANGE(0xd802, 0xd802) AM_DEVWRITE("sn1", sn76489_new_device, write)
58   AM_RANGE(0xd803, 0xd803) AM_DEVWRITE("sn2", sn76489_new_device, write)
57   AM_RANGE(0xd802, 0xd802) AM_DEVWRITE("sn1", sn76489_device, write)
58   AM_RANGE(0xd803, 0xd803) AM_DEVWRITE("sn2", sn76489_device, write)
5959   AM_RANGE(0xd807, 0xd807) AM_READNOP      /* unknown read */
6060   AM_RANGE(0xd817, 0xd817) AM_READNOP      /* unknown read */
6161   AM_RANGE(0xe800, 0xefff) AM_RAM AM_SHARE("spriteram")
r18237r18238
318318   MCFG_SOUND_CONFIG(ay8910_config)
319319   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.30)
320320
321   MCFG_SOUND_ADD("sn1", SN76489_NEW, XTAL_3_579545MHz) /* verified on pcb */
321   MCFG_SOUND_ADD("sn1", SN76489, XTAL_3_579545MHz) /* verified on pcb */
322322   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.30)
323323   MCFG_SOUND_CONFIG(psg_intf)
324324
325   MCFG_SOUND_ADD("sn2", SN76489_NEW, XTAL_3_579545MHz) /* verified on pcb */
325   MCFG_SOUND_ADD("sn2", SN76489, XTAL_3_579545MHz) /* verified on pcb */
326326   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.30)
327327   MCFG_SOUND_CONFIG(psg_intf)
328328MACHINE_CONFIG_END
trunk/src/mame/drivers/segae.c
r18237r18238
425425static ADDRESS_MAP_START( io_map, AS_IO, 8, systeme_state )
426426   ADDRESS_MAP_GLOBAL_MASK(0xff)
427427
428   AM_RANGE(0x7b, 0x7b) AM_DEVWRITE("sn1", segapsg_new_device, write )
429   AM_RANGE(0x7e, 0x7f) AM_DEVWRITE("sn2", segapsg_new_device, write )
428   AM_RANGE(0x7b, 0x7b) AM_DEVWRITE("sn1", segapsg_device, write )
429   AM_RANGE(0x7e, 0x7f) AM_DEVWRITE("sn2", segapsg_device, write )
430430   AM_RANGE(0x7e, 0x7e) AM_DEVREAD( "vdp1", sega315_5124_device, vcount_read )
431431   AM_RANGE(0xba, 0xba) AM_DEVREADWRITE( "vdp1", sega315_5124_device, vram_read, vram_write )
432432   AM_RANGE(0xbb, 0xbb) AM_DEVREADWRITE( "vdp1", sega315_5124_device, register_read, register_write )
r18237r18238
11321132   /* sound hardware */
11331133   MCFG_SPEAKER_STANDARD_MONO("mono")
11341134
1135   MCFG_SOUND_ADD("sn1", SEGAPSG_NEW, XTAL_10_738635MHz/3)
1135   MCFG_SOUND_ADD("sn1", SEGAPSG, XTAL_10_738635MHz/3)
11361136   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50)
11371137   MCFG_SOUND_CONFIG(psg_intf)
11381138
1139   MCFG_SOUND_ADD("sn2", SEGAPSG_NEW, XTAL_10_738635MHz/3)
1139   MCFG_SOUND_ADD("sn2", SEGAPSG, XTAL_10_738635MHz/3)
11401140   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50)
11411141   MCFG_SOUND_CONFIG(psg_intf)
11421142MACHINE_CONFIG_END
trunk/src/mame/drivers/zaxxon.c
r18237r18238
496496static ADDRESS_MAP_START( congo_sound_map, AS_PROGRAM, 8, zaxxon_state )
497497   AM_RANGE(0x0000, 0x1fff) AM_ROM
498498   AM_RANGE(0x4000, 0x47ff) AM_MIRROR(0x1800) AM_RAM
499   AM_RANGE(0x6000, 0x6000) AM_MIRROR(0x1fff) AM_DEVWRITE("sn1", sn76496_new_device, write)
499   AM_RANGE(0x6000, 0x6000) AM_MIRROR(0x1fff) AM_DEVWRITE("sn1", sn76496_device, write)
500500   AM_RANGE(0x8000, 0x8003) AM_MIRROR(0x1ffc) AM_DEVREADWRITE("ppi8255", i8255_device, read, write)
501   AM_RANGE(0xa000, 0xa000) AM_MIRROR(0x1fff) AM_DEVWRITE("sn2", sn76496_new_device, write)
501   AM_RANGE(0xa000, 0xa000) AM_MIRROR(0x1fff) AM_DEVWRITE("sn2", sn76496_device, write)
502502ADDRESS_MAP_END
503503
504504
r18237r18238
10361036   /* sound hardware */
10371037   MCFG_SPEAKER_STANDARD_MONO("mono")
10381038
1039   MCFG_SOUND_ADD("sn1", SN76496_NEW, SOUND_CLOCK)
1039   MCFG_SOUND_ADD("sn1", SN76496, SOUND_CLOCK)
10401040   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
10411041   MCFG_SOUND_CONFIG(psg_intf)
10421042
1043   MCFG_SOUND_ADD("sn2", SN76496_NEW, SOUND_CLOCK/4)
1043   MCFG_SOUND_ADD("sn2", SN76496, SOUND_CLOCK/4)
10441044   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
10451045   MCFG_SOUND_CONFIG(psg_intf)
10461046
trunk/src/mame/drivers/sg1000a.c
r18237r18238
146146
147147static ADDRESS_MAP_START( io_map, AS_IO, 8, sg1000a_state )
148148   ADDRESS_MAP_GLOBAL_MASK(0xff)
149   AM_RANGE(0x7f, 0x7f) AM_DEVWRITE("snsnd", sn76489_new_device, write)
149   AM_RANGE(0x7f, 0x7f) AM_DEVWRITE("snsnd", sn76489_device, write)
150150   AM_RANGE(0xbe, 0xbe) AM_DEVREADWRITE("tms9928a", tms9928a_device, vram_read, vram_write)
151151   AM_RANGE(0xbf, 0xbf) AM_DEVREADWRITE("tms9928a", tms9928a_device, register_read, register_write)
152152   AM_RANGE(0xdc, 0xdf) AM_DEVREADWRITE("ppi8255", i8255_device, read, write)
r18237r18238
305305   /* sound hardware */
306306   MCFG_SPEAKER_STANDARD_MONO("mono")
307307
308   MCFG_SOUND_ADD("snsnd", SN76489_NEW, XTAL_3_579545MHz)
308   MCFG_SOUND_ADD("snsnd", SN76489, XTAL_3_579545MHz)
309309   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
310310   MCFG_SOUND_CONFIG(psg_intf)
311311MACHINE_CONFIG_END
trunk/src/mame/drivers/trackfld.c
r18237r18238
942942   MCFG_DAC_ADD("dac")
943943   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.80)
944944
945   MCFG_SOUND_ADD("snsnd", SN76496_NEW, SOUND_CLOCK/8)
945   MCFG_SOUND_ADD("snsnd", SN76496, SOUND_CLOCK/8)
946946   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
947947   MCFG_SOUND_CONFIG(psg_intf)
948948
r18237r18238
996996   MCFG_DAC_ADD("dac")
997997   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.80)
998998
999   MCFG_SOUND_ADD("snsnd", SN76496_NEW, MASTER_CLOCK/6/2)
999   MCFG_SOUND_ADD("snsnd", SN76496, MASTER_CLOCK/6/2)
10001000   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
10011001   MCFG_SOUND_CONFIG(psg_intf)
10021002
trunk/src/mame/drivers/finalizr.c
r18237r18238
105105   AM_RANGE(0x0813, 0x0813) AM_READ_PORT("DSW1")
106106   AM_RANGE(0x0818, 0x0818) AM_WRITE(watchdog_reset_w)
107107   AM_RANGE(0x0819, 0x0819) AM_WRITE(finalizr_coin_w)
108   AM_RANGE(0x081a, 0x081a) AM_DEVWRITE("snsnd", sn76489a_new_device, write)   /* This address triggers the SN chip to read the data port. */
108   AM_RANGE(0x081a, 0x081a) AM_DEVWRITE("snsnd", sn76489a_device, write)   /* This address triggers the SN chip to read the data port. */
109109   AM_RANGE(0x081b, 0x081b) AM_WRITENOP      /* Loads the snd command into the snd latch */
110110   AM_RANGE(0x081c, 0x081c) AM_WRITE(finalizr_i8039_irq_w)   /* custom sound chip */
111111   AM_RANGE(0x081d, 0x081d) AM_WRITE(soundlatch_byte_w)         /* custom sound chip */
r18237r18238
300300   /* sound hardware */
301301   MCFG_SPEAKER_STANDARD_MONO("mono")
302302
303   MCFG_SOUND_ADD("snsnd", SN76489A_NEW, XTAL_18_432MHz/12)
303   MCFG_SOUND_ADD("snsnd", SN76489A, XTAL_18_432MHz/12)
304304   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.75)
305305   MCFG_SOUND_CONFIG(psg_intf)
306306
trunk/src/mame/drivers/goldstar.c
r18237r18238
201201   AM_RANGE(0xf840, 0xf840) AM_DEVWRITE_LEGACY("aysnd", ay8910_address_w)
202202//  AM_RANGE(0xf850, 0xf850) AM_WRITE_LEGACY(ncb3_p1_flip_w)   // need flip?
203203//  AM_RANGE(0xf860, 0xf860) AM_WRITE_LEGACY(ncb3_p2_flip_w)   // need flip?
204   AM_RANGE(0xf870, 0xf870) AM_DEVWRITE("snsnd", sn76489_new_device, write)   /* guess... device is initialized, but doesn't seems to be used.*/
204   AM_RANGE(0xf870, 0xf870) AM_DEVWRITE("snsnd", sn76489_device, write)   /* guess... device is initialized, but doesn't seems to be used.*/
205205ADDRESS_MAP_END
206206
207207static ADDRESS_MAP_START( ncb3_readwriteport, AS_IO, 8, goldstar_state )
r18237r18238
377377   AM_RANGE(0xb830, 0xb830) AM_DEVREADWRITE_LEGACY("aysnd", ay8910_r, ay8910_data_w)
378378   AM_RANGE(0xb840, 0xb840) AM_DEVWRITE_LEGACY("aysnd", ay8910_address_w)   /* no sound... only use both ports for DSWs */
379379   AM_RANGE(0xb850, 0xb850) AM_WRITE(lucky8_outport_w)
380   AM_RANGE(0xb870, 0xb870) AM_DEVWRITE("snsnd", sn76489_new_device, write)   /* sound */
380   AM_RANGE(0xb870, 0xb870) AM_DEVWRITE("snsnd", sn76489_device, write)   /* sound */
381381   AM_RANGE(0xf800, 0xffff) AM_RAM
382382ADDRESS_MAP_END
383383
r18237r18238
422422   AM_RANGE(0xb840, 0xb840) AM_DEVWRITE_LEGACY("aysnd", ay8910_address_w)   /* no sound... only use both ports for DSWs */
423423   AM_RANGE(0xb850, 0xb850) AM_WRITE(magodds_outb850_w) //lamps
424424   AM_RANGE(0xb860, 0xb860) AM_WRITE(magodds_outb860_w) //watchdog
425   AM_RANGE(0xb870, 0xb870) AM_DEVWRITE("snsnd", sn76489_new_device, write)   /* sound */
425   AM_RANGE(0xb870, 0xb870) AM_DEVWRITE("snsnd", sn76489_device, write)   /* sound */
426426   AM_RANGE(0xc000, 0xffff) AM_ROM AM_REGION("maincpu",0xc000)
427427ADDRESS_MAP_END
428428
r18237r18238
444444   AM_RANGE(0xb830, 0xb830) AM_WRITENOP      /* no ay8910 */
445445   AM_RANGE(0xb840, 0xb840) AM_WRITENOP      /* no ay8910 */
446446   AM_RANGE(0xb850, 0xb850) AM_WRITE(lucky8_outport_w)
447   AM_RANGE(0xb870, 0xb870) AM_DEVWRITE("snsnd", sn76489_new_device, write)   /* sound */
447   AM_RANGE(0xb870, 0xb870) AM_DEVWRITE("snsnd", sn76489_device, write)   /* sound */
448448   AM_RANGE(0xf800, 0xffff) AM_RAM
449449ADDRESS_MAP_END
450450
r18237r18238
482482   AM_RANGE(0xb830, 0xb830) AM_DEVREADWRITE_LEGACY("aysnd", ay8910_r, ay8910_data_w)
483483   AM_RANGE(0xb840, 0xb840) AM_DEVWRITE_LEGACY("aysnd", ay8910_address_w)   /* no sound... only use ports */
484484   AM_RANGE(0xb850, 0xb850) AM_WRITENOP   /* just turn off the lamps, if exist */
485   AM_RANGE(0xb870, 0xb870) AM_DEVWRITE("snsnd", sn76489_new_device, write)   /* sound */
485   AM_RANGE(0xb870, 0xb870) AM_DEVWRITE("snsnd", sn76489_device, write)   /* sound */
486486   AM_RANGE(0xf800, 0xffff) AM_RAM
487487ADDRESS_MAP_END
488488
r18237r18238
504504   AM_RANGE(0xb830, 0xb830) AM_DEVREADWRITE_LEGACY("aysnd", ay8910_r, ay8910_data_w)
505505   AM_RANGE(0xb840, 0xb840) AM_DEVWRITE_LEGACY("aysnd", ay8910_address_w)   /* no sound... only use both ports for DSWs */
506506   AM_RANGE(0xb850, 0xb850) AM_WRITE(lucky8_outport_w)
507   AM_RANGE(0xb870, 0xb870) AM_DEVWRITE("snsnd", sn76489_new_device, write)   /* sound */
507   AM_RANGE(0xb870, 0xb870) AM_DEVWRITE("snsnd", sn76489_device, write)   /* sound */
508508//  AM_RANGE(0xc000, 0xc003) AM_DEVREADWRITE("ppi8255_3", i8255_device, read, write) /* Other PPI initialized? */
509509   AM_RANGE(0xd000, 0xefff) AM_ROM
510510   AM_RANGE(0xf000, 0xffff) AM_RAM
r18237r18238
60436043   /* sound hardware */
60446044   MCFG_SPEAKER_STANDARD_MONO("mono")
60456045
6046   MCFG_SOUND_ADD("snsnd", SN76489_NEW, PSG_CLOCK)
6046   MCFG_SOUND_ADD("snsnd", SN76489, PSG_CLOCK)
60476047   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.80)
60486048   MCFG_SOUND_CONFIG(psg_intf)
60496049
r18237r18238
60856085   /* sound hardware */
60866086   MCFG_SPEAKER_STANDARD_MONO("mono")
60876087
6088   MCFG_SOUND_ADD("snsnd", SN76489_NEW, PSG_CLOCK)
6088   MCFG_SOUND_ADD("snsnd", SN76489, PSG_CLOCK)
60896089   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.80)
60906090   MCFG_SOUND_CONFIG(psg_intf)
60916091
r18237r18238
61276127   /* sound hardware */
61286128   MCFG_SPEAKER_STANDARD_MONO("mono")
61296129
6130   MCFG_SOUND_ADD("snsnd", SN76489_NEW, PSG_CLOCK)
6130   MCFG_SOUND_ADD("snsnd", SN76489, PSG_CLOCK)
61316131   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.80)
61326132   MCFG_SOUND_CONFIG(psg_intf)
61336133
r18237r18238
62846284   /* sound hardware */
62856285   MCFG_SPEAKER_STANDARD_MONO("mono")
62866286
6287   MCFG_SOUND_ADD("snsnd", SN76489_NEW, PSG_CLOCK)
6287   MCFG_SOUND_ADD("snsnd", SN76489, PSG_CLOCK)
62886288   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.80)
62896289   MCFG_SOUND_CONFIG(psg_intf)
62906290
r18237r18238
63246324   /* sound hardware */
63256325   MCFG_SPEAKER_STANDARD_MONO("mono")
63266326
6327   MCFG_SOUND_ADD("snsnd", SN76489_NEW, PSG_CLOCK)
6327   MCFG_SOUND_ADD("snsnd", SN76489, PSG_CLOCK)
63286328   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.80)
63296329   MCFG_SOUND_CONFIG(psg_intf)
63306330
r18237r18238
63646364   /* sound hardware */
63656365   MCFG_SPEAKER_STANDARD_MONO("mono")
63666366
6367   MCFG_SOUND_ADD("snsnd", SN76489_NEW, PSG_CLOCK)
6367   MCFG_SOUND_ADD("snsnd", SN76489, PSG_CLOCK)
63686368   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.80)
63696369   MCFG_SOUND_CONFIG(psg_intf)
63706370
r18237r18238
64216421   /* sound hardware */
64226422   MCFG_SPEAKER_STANDARD_MONO("mono")
64236423
6424   MCFG_SOUND_ADD("snsnd", SN76489_NEW, PSG_CLOCK)
6424   MCFG_SOUND_ADD("snsnd", SN76489, PSG_CLOCK)
64256425   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.00)  // shut up annoying whine
64266426   MCFG_SOUND_CONFIG(psg_intf)
64276427
r18237r18238
64626462   /* sound hardware */
64636463   MCFG_SPEAKER_STANDARD_MONO("mono")
64646464
6465   MCFG_SOUND_ADD("snsnd", SN76489_NEW, PSG_CLOCK)
6465   MCFG_SOUND_ADD("snsnd", SN76489, PSG_CLOCK)
64666466   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.80)
64676467   MCFG_SOUND_CONFIG(psg_intf)
64686468
r18237r18238
64996499   /* sound hardware */
65006500   MCFG_SPEAKER_STANDARD_MONO("mono")//set up a standard mono speaker called 'mono'
65016501
6502   MCFG_SOUND_ADD("snsnd", SN76489_NEW, PSG_CLOCK)
6502   MCFG_SOUND_ADD("snsnd", SN76489, PSG_CLOCK)
65036503   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.80)
65046504   MCFG_SOUND_CONFIG(psg_intf)
65056505
r18237r18238
65406540   /* sound hardware */
65416541   MCFG_SPEAKER_STANDARD_MONO("mono")
65426542
6543   MCFG_SOUND_ADD("snsnd", SN76489_NEW, PSG_CLOCK)
6543   MCFG_SOUND_ADD("snsnd", SN76489, PSG_CLOCK)
65446544   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.80)
65456545   MCFG_SOUND_CONFIG(psg_intf)
65466546
trunk/src/mame/drivers/shaolins.c
r18237r18238
2929   AM_RANGE(0x0000, 0x0000) AM_WRITE(shaolins_nmi_w)   /* bit 0 = flip screen, bit 1 = nmi enable, bit 2 = ? */
3030                                          /* bit 3, bit 4 = coin counters */
3131   AM_RANGE(0x0100, 0x0100) AM_WRITE(watchdog_reset_w)
32   AM_RANGE(0x0300, 0x0300) AM_DEVWRITE("sn1", sn76489a_new_device, write)   /* trigger chip to read from latch. The program always */
33   AM_RANGE(0x0400, 0x0400) AM_DEVWRITE("sn2", sn76489a_new_device, write)   /* writes the same number as the latch, so we don't */
32   AM_RANGE(0x0300, 0x0300) AM_DEVWRITE("sn1", sn76489a_device, write)   /* trigger chip to read from latch. The program always */
33   AM_RANGE(0x0400, 0x0400) AM_DEVWRITE("sn2", sn76489a_device, write)   /* writes the same number as the latch, so we don't */
3434                                             /* bother emulating them. */
3535   AM_RANGE(0x0500, 0x0500) AM_READ_PORT("DSW1")
3636   AM_RANGE(0x0600, 0x0600) AM_READ_PORT("DSW2")
r18237r18238
223223   /* sound hardware */
224224   MCFG_SPEAKER_STANDARD_MONO("mono")
225225
226   MCFG_SOUND_ADD("sn1", SN76489A_NEW, MASTER_CLOCK/12)        /* verified on pcb */
226   MCFG_SOUND_ADD("sn1", SN76489A, MASTER_CLOCK/12)        /* verified on pcb */
227227   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
228228   MCFG_SOUND_CONFIG(psg_intf)
229229
230   MCFG_SOUND_ADD("sn2", SN76489A_NEW, MASTER_CLOCK/6)        /* verified on pcb */
230   MCFG_SOUND_ADD("sn2", SN76489A, MASTER_CLOCK/6)        /* verified on pcb */
231231   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
232232   MCFG_SOUND_CONFIG(psg_intf)
233233MACHINE_CONFIG_END
r18237r18238
235235#if 0 // a bootleg board was found with downgraded sound hardware, but is otherwise the same
236236static MACHINE_CONFIG_DERIVED( shaolinb, shaolins )
237237
238   MCFG_SOUND_REPLACE("sn1", SN76489_NEW, MASTER_CLOCK/12) /* only type verified on pcb */
238   MCFG_SOUND_REPLACE("sn1", SN76489, MASTER_CLOCK/12) /* only type verified on pcb */
239239   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
240240   MCFG_SOUND_CONFIG(psg_intf)
241241
242   MCFG_SOUND_REPLACE("sn2", SN76489_NEW, MASTER_CLOCK/6)  /* only type verified on pcb */
242   MCFG_SOUND_REPLACE("sn2", SN76489, MASTER_CLOCK/6)  /* only type verified on pcb */
243243   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
244244   MCFG_SOUND_CONFIG(psg_intf)
245245MACHINE_CONFIG_END
trunk/src/mame/drivers/pachifev.c
r18237r18238
146146    AM_RANGE(0xff08, 0xff08) AM_READ_PORT("DSW3")
147147    AM_RANGE(0xff10, 0xff10) AM_DEVREADWRITE("tms9928a", tms9928a_device, vram_read, vram_write)
148148    AM_RANGE(0xff12, 0xff12) AM_DEVREADWRITE("tms9928a", tms9928a_device, register_read, register_write)
149    AM_RANGE(0xff20, 0xff20) AM_DEVWRITE("y2404_1", y2404_new_device, write)
150    AM_RANGE(0xff30, 0xff30) AM_DEVWRITE("y2404_2", y2404_new_device, write)
149    AM_RANGE(0xff20, 0xff20) AM_DEVWRITE("y2404_1", y2404_device, write)
150    AM_RANGE(0xff30, 0xff30) AM_DEVWRITE("y2404_2", y2404_device, write)
151151    AM_RANGE(0xff40, 0xff40) AM_WRITE(controls_w)
152152    AM_RANGE(0xff50, 0xff50) AM_WRITENOP /* unknown */
153153    AM_RANGE(0xfffa, 0xfffb) AM_NOP /* decrementer */
r18237r18238
393393    MCFG_SOUND_CONFIG(msm5205_config)
394394    MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00)
395395#endif
396    MCFG_SOUND_ADD("y2404_1", Y2404_NEW, XTAL_10_738635MHz/3) /* guess */
396    MCFG_SOUND_ADD("y2404_1", Y2404, XTAL_10_738635MHz/3) /* guess */
397397    MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.30)
398398   MCFG_SOUND_CONFIG(psg_intf)
399    MCFG_SOUND_ADD("y2404_2", Y2404_NEW, XTAL_10_738635MHz/3) /* guess */
399    MCFG_SOUND_ADD("y2404_2", Y2404, XTAL_10_738635MHz/3) /* guess */
400400    MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.30)
401401   MCFG_SOUND_CONFIG(psg_intf)
402402MACHINE_CONFIG_END
trunk/src/mame/drivers/segag80r.c
r18237r18238
946946   MCFG_CPU_PERIODIC_INT_DRIVER(segag80r_state, irq0_line_hold, 4*60)
947947
948948   /* sound hardware */
949   MCFG_SOUND_ADD("sn1", SN76496_NEW, SINDBADM_SOUND_CLOCK/4)
949   MCFG_SOUND_ADD("sn1", SN76496, SINDBADM_SOUND_CLOCK/4)
950950   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
951951   MCFG_SOUND_CONFIG(psg_intf)
952952
953   MCFG_SOUND_ADD("sn2", SN76496_NEW, SINDBADM_SOUND_CLOCK/2)
953   MCFG_SOUND_ADD("sn2", SN76496, SINDBADM_SOUND_CLOCK/2)
954954   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
955955   MCFG_SOUND_CONFIG(psg_intf)
956956MACHINE_CONFIG_END
trunk/src/mame/drivers/galaxold.c
r18237r18238
886886ADDRESS_MAP_END
887887
888888static ADDRESS_MAP_START( racknrol_io, AS_IO, 8, galaxold_state )
889   AM_RANGE(0x1d, 0x1d) AM_DEVWRITE("sn1", sn76496_new_device, write)
890   AM_RANGE(0x1e, 0x1e) AM_DEVWRITE("sn2", sn76496_new_device, write)
891   AM_RANGE(0x1f, 0x1f) AM_DEVWRITE("sn3", sn76496_new_device, write)
889   AM_RANGE(0x1d, 0x1d) AM_DEVWRITE("sn1", sn76496_device, write)
890   AM_RANGE(0x1e, 0x1e) AM_DEVWRITE("sn2", sn76496_device, write)
891   AM_RANGE(0x1f, 0x1f) AM_DEVWRITE("sn3", sn76496_device, write)
892892   AM_RANGE(0x20, 0x3f) AM_WRITE(racknrol_tiles_bank_w) AM_SHARE("racknrol_tbank")
893893   AM_RANGE(S2650_SENSE_PORT, S2650_SENSE_PORT) AM_READ_PORT("SENSE")
894894ADDRESS_MAP_END
r18237r18238
910910static ADDRESS_MAP_START( hexpoola_io, AS_IO, 8, galaxold_state )
911911   AM_RANGE(0x00, 0x00) AM_READNOP
912912   AM_RANGE(0x20, 0x3f) AM_WRITE(racknrol_tiles_bank_w) AM_SHARE("racknrol_tbank")
913   AM_RANGE(S2650_DATA_PORT, S2650_DATA_PORT) AM_READ(hexpoola_data_port_r) AM_DEVWRITE("snsnd", sn76496_new_device, write)
913   AM_RANGE(S2650_DATA_PORT, S2650_DATA_PORT) AM_READ(hexpoola_data_port_r) AM_DEVWRITE("snsnd", sn76496_device, write)
914914   AM_RANGE(S2650_SENSE_PORT, S2650_SENSE_PORT) AM_READ_PORT("SENSE")
915915ADDRESS_MAP_END
916916
r18237r18238
938938static ADDRESS_MAP_START( bullsdrtg_io_map, AS_IO, 8, galaxold_state )
939939   AM_RANGE(0x00, 0x00) AM_READNOP
940940   AM_RANGE(0x20, 0x3f) AM_WRITE(racknrol_tiles_bank_w) AM_SHARE("racknrol_tbank")
941   AM_RANGE(S2650_DATA_PORT, S2650_DATA_PORT) AM_READ(bullsdrtg_data_port_r) AM_DEVWRITE("snsnd", sn76496_new_device, write)
941   AM_RANGE(S2650_DATA_PORT, S2650_DATA_PORT) AM_READ(bullsdrtg_data_port_r) AM_DEVWRITE("snsnd", sn76496_device, write)
942942   AM_RANGE(S2650_SENSE_PORT, S2650_SENSE_PORT) AM_READ_PORT("SENSE")
943943ADDRESS_MAP_END
944944
r18237r18238
24462446
24472447   /* sound hardware */
24482448   MCFG_SPEAKER_STANDARD_MONO("mono")
2449   MCFG_SOUND_ADD("sn1", SN76496_NEW, PIXEL_CLOCK/2)
2449   MCFG_SOUND_ADD("sn1", SN76496, PIXEL_CLOCK/2)
24502450   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
24512451   MCFG_SOUND_CONFIG(psg_intf)
24522452
2453   MCFG_SOUND_ADD("sn2", SN76496_NEW, PIXEL_CLOCK/2)
2453   MCFG_SOUND_ADD("sn2", SN76496, PIXEL_CLOCK/2)
24542454   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
24552455   MCFG_SOUND_CONFIG(psg_intf)
24562456
2457   MCFG_SOUND_ADD("sn3", SN76496_NEW, PIXEL_CLOCK/2)
2457   MCFG_SOUND_ADD("sn3", SN76496, PIXEL_CLOCK/2)
24582458   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
24592459   MCFG_SOUND_CONFIG(psg_intf)
24602460MACHINE_CONFIG_END
r18237r18238
25042504
25052505   /* sound hardware */
25062506   MCFG_SPEAKER_STANDARD_MONO("mono")
2507   MCFG_SOUND_ADD("snsnd", SN76496_NEW, PIXEL_CLOCK/2)
2507   MCFG_SOUND_ADD("snsnd", SN76496, PIXEL_CLOCK/2)
25082508   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
25092509   MCFG_SOUND_CONFIG(psg_intf)
25102510MACHINE_CONFIG_END
trunk/src/mame/drivers/sbugger.c
r18237r18238
116116
117117static ADDRESS_MAP_START( sbugger_io_map, AS_IO, 8, sbugger_state )
118118   AM_RANGE(0xe0, 0xe7) AM_DEVREADWRITE("i8156", i8155_device, io_r, io_w)
119   AM_RANGE(0xe8, 0xe8) AM_DEVWRITE("sn76489.1", sn76489_new_device, write)
120   AM_RANGE(0xe9, 0xe9) AM_DEVWRITE("sn76489.2", sn76489_new_device, write)
119   AM_RANGE(0xe8, 0xe8) AM_DEVWRITE("sn76489.1", sn76489_device, write)
120   AM_RANGE(0xe9, 0xe9) AM_DEVWRITE("sn76489.2", sn76489_device, write)
121121ADDRESS_MAP_END
122122
123123
r18237r18238
262262   /* sound hardware */
263263   MCFG_SPEAKER_STANDARD_MONO("mono")
264264
265   MCFG_SOUND_ADD("sn76489.1", SN76489_NEW, 3000000)
265   MCFG_SOUND_ADD("sn76489.1", SN76489, 3000000)
266266   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
267267   MCFG_SOUND_CONFIG(psg_intf)
268268
269   MCFG_SOUND_ADD("sn76489.2", SN76489_NEW, 3000000)
269   MCFG_SOUND_ADD("sn76489.2", SN76489, 3000000)
270270   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
271271   MCFG_SOUND_CONFIG(psg_intf)
272272MACHINE_CONFIG_END
trunk/src/mame/drivers/mrjong.c
r18237r18238
7878static ADDRESS_MAP_START( mrjong_io_map, AS_IO, 8, mrjong_state )
7979   ADDRESS_MAP_GLOBAL_MASK(0xff)
8080   AM_RANGE(0x00, 0x00) AM_READ_PORT("P2") AM_WRITE(mrjong_flipscreen_w)
81   AM_RANGE(0x01, 0x01) AM_READ_PORT("P1") AM_DEVWRITE("sn1", sn76489_new_device, write)
82   AM_RANGE(0x02, 0x02) AM_READ_PORT("DSW") AM_DEVWRITE("sn2", sn76489_new_device, write)
81   AM_RANGE(0x01, 0x01) AM_READ_PORT("P1") AM_DEVWRITE("sn1", sn76489_device, write)
82   AM_RANGE(0x02, 0x02) AM_READ_PORT("DSW") AM_DEVWRITE("sn2", sn76489_device, write)
8383   AM_RANGE(0x03, 0x03) AM_READ(io_0x03_r)      // Unknown
8484ADDRESS_MAP_END
8585
r18237r18238
218218   /* sound hardware */
219219   MCFG_SPEAKER_STANDARD_MONO("mono")
220220
221   MCFG_SOUND_ADD("sn1", SN76489_NEW, 15468000/6)
221   MCFG_SOUND_ADD("sn1", SN76489, 15468000/6)
222222   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
223223   MCFG_SOUND_CONFIG(psg_intf)
224224
225   MCFG_SOUND_ADD("sn2", SN76489_NEW, 15468000/6)
225   MCFG_SOUND_ADD("sn2", SN76489, 15468000/6)
226226   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
227227   MCFG_SOUND_CONFIG(psg_intf)
228228MACHINE_CONFIG_END
trunk/src/mame/drivers/superdq.c
r18237r18238
215215   AM_RANGE(0x01, 0x01) AM_READ_PORT("IN1")
216216   AM_RANGE(0x02, 0x02) AM_READ_PORT("DSW1")
217217   AM_RANGE(0x03, 0x03) AM_READ_PORT("DSW2")
218   AM_RANGE(0x04, 0x04) AM_READ(superdq_ld_r) AM_DEVWRITE("snsnd", sn76496_new_device, write)
218   AM_RANGE(0x04, 0x04) AM_READ(superdq_ld_r) AM_DEVWRITE("snsnd", sn76496_device, write)
219219   AM_RANGE(0x08, 0x08) AM_WRITE(superdq_io_w)
220220   AM_RANGE(0x0c, 0x0d) AM_NOP /* HD46505S */
221221ADDRESS_MAP_END
r18237r18238
361361   /* sound hardware */
362362   MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker")
363363
364   MCFG_SOUND_ADD("snsnd", SN76496_NEW, MASTER_CLOCK/8)
364   MCFG_SOUND_ADD("snsnd", SN76496, MASTER_CLOCK/8)
365365   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "lspeaker", 0.8)
366366   MCFG_SOUND_CONFIG(psg_intf)
367367
trunk/src/mame/drivers/spaceg.c
r18237r18238
443443   /* sound hardware */
444444//  MCFG_SPEAKER_STANDARD_MONO("mono")
445445
446//  MCFG_SOUND_ADD("sn1", SN76496_NEW, 15468480/4)
446//  MCFG_SOUND_ADD("sn1", SN76496, 15468480/4)
447447//  MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
448448//  MCFG_SOUND_CONFIG(psg_intf)
449449
450//  MCFG_SOUND_ADD("sn2", SN76496_NEW, 15468480/4)
450//  MCFG_SOUND_ADD("sn2", SN76496, 15468480/4)
451451//  MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
452452//  MCFG_SOUND_CONFIG(psg_intf)
453453
454//  MCFG_SOUND_ADD("sn3", SN76496_NEW, 15468480/4)
454//  MCFG_SOUND_ADD("sn3", SN76496, 15468480/4)
455455//  MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
456456//  MCFG_SOUND_CONFIG(psg_intf)
457457
trunk/src/mame/drivers/pingpong.c
r18237r18238
9696   AM_RANGE(0xa980, 0xa980) AM_READ_PORT("DSW2")
9797   AM_RANGE(0xa000, 0xa000) AM_WRITE(coin_w)   /* coin counters + irq enables */
9898   AM_RANGE(0xa200, 0xa200) AM_WRITENOP      /* SN76496 data latch */
99   AM_RANGE(0xa400, 0xa400) AM_DEVWRITE("snsnd", sn76496_new_device, write)   /* trigger read */
99   AM_RANGE(0xa400, 0xa400) AM_DEVWRITE("snsnd", sn76496_device, write)   /* trigger read */
100100   AM_RANGE(0xa600, 0xa600) AM_WRITE(watchdog_reset_w)
101101ADDRESS_MAP_END
102102
r18237r18238
117117   AM_RANGE(0xa100, 0xa100) AM_READ_PORT("IN2")
118118   AM_RANGE(0xa180, 0xa180) AM_READ_PORT("IN3")
119119   AM_RANGE(0xa200, 0xa200) AM_WRITENOP      /* SN76496 data latch */
120   AM_RANGE(0xa400, 0xa400) AM_DEVWRITE("snsnd", sn76496_new_device, write)   /* trigger read */
120   AM_RANGE(0xa400, 0xa400) AM_DEVWRITE("snsnd", sn76496_device, write)   /* trigger read */
121121   AM_RANGE(0xa600, 0xa600) AM_WRITE(watchdog_reset_w)
122122ADDRESS_MAP_END
123123
r18237r18238
479479   /* sound hardware */
480480   MCFG_SPEAKER_STANDARD_MONO("mono")
481481
482   MCFG_SOUND_ADD("snsnd", SN76496_NEW, 18432000/8)
482   MCFG_SOUND_ADD("snsnd", SN76496, 18432000/8)
483483   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
484484   MCFG_SOUND_CONFIG(psg_intf)
485485MACHINE_CONFIG_END
trunk/src/mame/drivers/retofinv.c
r18237r18238
137137   AM_RANGE(0x2000, 0x27ff) AM_RAM
138138   AM_RANGE(0x4000, 0x4000) AM_READ(soundlatch_byte_r)
139139   AM_RANGE(0x6000, 0x6000) AM_WRITE(cpu2_m6000_w)
140   AM_RANGE(0x8000, 0x8000) AM_DEVWRITE("sn1", sn76496_new_device, write)
141   AM_RANGE(0xa000, 0xa000) AM_DEVWRITE("sn2", sn76496_new_device, write)
140   AM_RANGE(0x8000, 0x8000) AM_DEVWRITE("sn1", sn76496_device, write)
141   AM_RANGE(0xa000, 0xa000) AM_DEVWRITE("sn2", sn76496_device, write)
142142   AM_RANGE(0xe000, 0xffff) AM_ROM       /* space for diagnostic ROM */
143143ADDRESS_MAP_END
144144
r18237r18238
395395   /* sound hardware */
396396   MCFG_SPEAKER_STANDARD_MONO("mono")
397397
398   MCFG_SOUND_ADD("sn1", SN76496_NEW, 18432000/6)
398   MCFG_SOUND_ADD("sn1", SN76496, 18432000/6)
399399   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.80)
400400   MCFG_SOUND_CONFIG(psg_intf)
401401
402   MCFG_SOUND_ADD("sn2", SN76496_NEW, 18432000/6)
402   MCFG_SOUND_ADD("sn2", SN76496, 18432000/6)
403403   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.80)
404404   MCFG_SOUND_CONFIG(psg_intf)
405405MACHINE_CONFIG_END
trunk/src/mame/drivers/wico.c
r18237r18238
6767   AM_RANGE(0x1fe2, 0x1fe2) AM_WRITE(muxen_w)
6868   //AM_RANGE(0x1fe3, 0x1fe3) AM_WRITE(csols_w)
6969   AM_RANGE(0x1fe4, 0x1fe4) AM_READNOP //AM_WRITE(msols_w)
70   AM_RANGE(0x1fe5, 0x1fe5) AM_DEVWRITE("sn76494", sn76494_new_device, write)
70   AM_RANGE(0x1fe5, 0x1fe5) AM_DEVWRITE("sn76494", sn76494_device, write)
7171   AM_RANGE(0x1fe6, 0x1fe6) AM_WRITE(wdogcl_w)
7272   AM_RANGE(0x1fe7, 0x1fe7) AM_WRITE(zcres_w)
7373   AM_RANGE(0x1fe8, 0x1fe8) AM_WRITE(dled0_w)
r18237r18238
8989   AM_RANGE(0x1fe2, 0x1fe2) AM_WRITE(muxen_w) // digit to display on diagnostic LED; d0=L will disable main displays
9090   //AM_RANGE(0x1fe3, 0x1fe3) AM_WRITE(csols_w) // solenoid column
9191   //AM_RANGE(0x1fe4, 0x1fe4) AM_READNOP AM_WRITE(msols_w) // solenoid row
92   AM_RANGE(0x1fe5, 0x1fe5) AM_DEVWRITE("sn76494", sn76494_new_device, write)
92   AM_RANGE(0x1fe5, 0x1fe5) AM_DEVWRITE("sn76494", sn76494_device, write)
9393   AM_RANGE(0x1fe6, 0x1fe6) AM_WRITE(wdogcl_w) // watchdog clear
9494   AM_RANGE(0x1fe7, 0x1fe7) AM_WRITE(zcres_w) // enable IRQ on hcpu
9595   AM_RANGE(0x1fe8, 0x1fe8) AM_WRITE(dled0_w) // turn off diagnostic LED
r18237r18238
405405
406406   /* Sound */
407407   MCFG_FRAGMENT_ADD( genpin_audio )
408   MCFG_SOUND_ADD("sn76494", SN76494_NEW, 10000000 / 64)
408   MCFG_SOUND_ADD("sn76494", SN76494, 10000000 / 64)
409409   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.75)
410410   MCFG_SOUND_CONFIG(psg_intf)
411411MACHINE_CONFIG_END
trunk/src/mame/drivers/bankp.c
r18237r18238
130130
131131static ADDRESS_MAP_START( bankp_io_map, AS_IO, 8, bankp_state )
132132   ADDRESS_MAP_GLOBAL_MASK(0xff)
133   AM_RANGE(0x00, 0x00) AM_READ_PORT("IN0") AM_DEVWRITE("sn1", sn76489_new_device, write)
134   AM_RANGE(0x01, 0x01) AM_READ_PORT("IN1") AM_DEVWRITE("sn2", sn76489_new_device, write)
135   AM_RANGE(0x02, 0x02) AM_READ_PORT("IN2") AM_DEVWRITE("sn3", sn76489_new_device, write)
133   AM_RANGE(0x00, 0x00) AM_READ_PORT("IN0") AM_DEVWRITE("sn1", sn76489_device, write)
134   AM_RANGE(0x01, 0x01) AM_READ_PORT("IN1") AM_DEVWRITE("sn2", sn76489_device, write)
135   AM_RANGE(0x02, 0x02) AM_READ_PORT("IN2") AM_DEVWRITE("sn3", sn76489_device, write)
136136   AM_RANGE(0x04, 0x04) AM_READ_PORT("DSW1")
137137   AM_RANGE(0x05, 0x05) AM_WRITE(bankp_scroll_w)
138138   AM_RANGE(0x07, 0x07) AM_WRITE(bankp_out_w)
r18237r18238
317317   /* sound hardware */
318318   MCFG_SPEAKER_STANDARD_MONO("mono")
319319
320   MCFG_SOUND_ADD("sn1", SN76489_NEW, MASTER_CLOCK/6)
320   MCFG_SOUND_ADD("sn1", SN76489, MASTER_CLOCK/6)
321321   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
322322   MCFG_SOUND_CONFIG(psg_intf)
323323
324   MCFG_SOUND_ADD("sn2", SN76489_NEW, MASTER_CLOCK/6)
324   MCFG_SOUND_ADD("sn2", SN76489, MASTER_CLOCK/6)
325325   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
326326   MCFG_SOUND_CONFIG(psg_intf)
327327
328   MCFG_SOUND_ADD("sn3", SN76489_NEW, MASTER_CLOCK/6)
328   MCFG_SOUND_ADD("sn3", SN76489, MASTER_CLOCK/6)
329329   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
330330   MCFG_SOUND_CONFIG(psg_intf)
331331MACHINE_CONFIG_END
trunk/src/mame/drivers/spcforce.c
r18237r18238
287287   /* sound hardware */
288288   MCFG_SPEAKER_STANDARD_MONO("mono")
289289
290   MCFG_SOUND_ADD("sn1", SN76496_NEW, 2000000)
290   MCFG_SOUND_ADD("sn1", SN76496, 2000000)
291291   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
292292   MCFG_SOUND_CONFIG(psg_intf)
293293
294   MCFG_SOUND_ADD("sn2", SN76496_NEW, 2000000)
294   MCFG_SOUND_ADD("sn2", SN76496, 2000000)
295295   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
296296   MCFG_SOUND_CONFIG(psg_intf)
297297
298   MCFG_SOUND_ADD("sn3", SN76496_NEW, 2000000)
298   MCFG_SOUND_ADD("sn3", SN76496, 2000000)
299299   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
300300   MCFG_SOUND_CONFIG(psg_intf)
301301MACHINE_CONFIG_END
trunk/src/mame/drivers/mikie.c
r18237r18238
121121   AM_RANGE(0x4000, 0x43ff) AM_RAM
122122   AM_RANGE(0x8000, 0x8000) AM_WRITENOP   // sound command latch
123123   AM_RANGE(0x8001, 0x8001) AM_WRITENOP   // ???
124   AM_RANGE(0x8002, 0x8002) AM_DEVWRITE("sn1", sn76489a_new_device, write)   // trigger read of latch
124   AM_RANGE(0x8002, 0x8002) AM_DEVWRITE("sn1", sn76489a_device, write)   // trigger read of latch
125125   AM_RANGE(0x8003, 0x8003) AM_READ(soundlatch_byte_r)
126   AM_RANGE(0x8004, 0x8004) AM_DEVWRITE("sn2", sn76489a_new_device, write)   // trigger read of latch
126   AM_RANGE(0x8004, 0x8004) AM_DEVWRITE("sn2", sn76489a_device, write)   // trigger read of latch
127127   AM_RANGE(0x8005, 0x8005) AM_READ(mikie_sh_timer_r)
128128   AM_RANGE(0x8079, 0x8079) AM_WRITENOP   // ???
129129   AM_RANGE(0xa003, 0xa003) AM_WRITENOP   // ???
r18237r18238
297297   /* sound hardware */
298298   MCFG_SPEAKER_STANDARD_MONO("mono")
299299
300   MCFG_SOUND_ADD("sn1", SN76489A_NEW, XTAL/8)
300   MCFG_SOUND_ADD("sn1", SN76489A, XTAL/8)
301301   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.60)
302302   MCFG_SOUND_CONFIG(psg_intf)
303303
304   MCFG_SOUND_ADD("sn2", SN76489A_NEW, CLK)
304   MCFG_SOUND_ADD("sn2", SN76489A, CLK)
305305   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.60)
306306   MCFG_SOUND_CONFIG(psg_intf)
307307MACHINE_CONFIG_END
trunk/src/mame/drivers/sprcros2.c
r18237r18238
112112
113113static ADDRESS_MAP_START( sprcros2_master_io_map, AS_IO, 8, sprcros2_state )
114114   ADDRESS_MAP_GLOBAL_MASK(0xff)
115   AM_RANGE(0x00, 0x00) AM_READ_PORT("P1") AM_DEVWRITE("sn1", sn76489_new_device, write)
116   AM_RANGE(0x01, 0x01) AM_READ_PORT("P2") AM_DEVWRITE("sn2", sn76489_new_device, write)
117   AM_RANGE(0x02, 0x02) AM_READ_PORT("EXTRA") AM_DEVWRITE("sn3", sn76489_new_device, write)
115   AM_RANGE(0x00, 0x00) AM_READ_PORT("P1") AM_DEVWRITE("sn1", sn76489_device, write)
116   AM_RANGE(0x01, 0x01) AM_READ_PORT("P2") AM_DEVWRITE("sn2", sn76489_device, write)
117   AM_RANGE(0x02, 0x02) AM_READ_PORT("EXTRA") AM_DEVWRITE("sn3", sn76489_device, write)
118118   AM_RANGE(0x04, 0x04) AM_READ_PORT("DSW1")
119119   AM_RANGE(0x05, 0x05) AM_READ_PORT("DSW2")
120120   AM_RANGE(0x07, 0x07) AM_WRITE(sprcros2_m_port7_w)
r18237r18238
304304   /* sound hardware */
305305   MCFG_SPEAKER_STANDARD_MONO("mono")
306306
307   MCFG_SOUND_ADD("sn1", SN76489_NEW, 10000000/4)
307   MCFG_SOUND_ADD("sn1", SN76489, 10000000/4)
308308   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50)
309309   MCFG_SOUND_CONFIG(psg_intf)
310310
311   MCFG_SOUND_ADD("sn2", SN76489_NEW, 10000000/4)
311   MCFG_SOUND_ADD("sn2", SN76489, 10000000/4)
312312   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50)
313313   MCFG_SOUND_CONFIG(psg_intf)
314314
315   MCFG_SOUND_ADD("sn3", SN76489_NEW, 10000000/4)
315   MCFG_SOUND_ADD("sn3", SN76489, 10000000/4)
316316   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50)
317317   MCFG_SOUND_CONFIG(psg_intf)
318318MACHINE_CONFIG_END
trunk/src/mame/drivers/homedata.c
r18237r18238
535535   AM_RANGE(0x8000, 0x8000) AM_WRITE(mrokumei_blitter_start_w)   // in some games also ROM bank switch to access service ROM
536536   AM_RANGE(0x8001, 0x8001) AM_WRITE(mrokumei_keyboard_select_w)
537537   AM_RANGE(0x8002, 0x8002) AM_WRITE(mrokumei_sound_cmd_w)
538   AM_RANGE(0x8003, 0x8003) AM_DEVWRITE("snsnd", sn76489a_new_device, write)
538   AM_RANGE(0x8003, 0x8003) AM_DEVWRITE("snsnd", sn76489a_device, write)
539539   AM_RANGE(0x8006, 0x8006) AM_WRITE(homedata_blitter_param_w)
540540   AM_RANGE(0x8007, 0x8007) AM_WRITE(mrokumei_blitter_bank_w)
541541   AM_RANGE(0x8000, 0xffff) AM_ROM
r18237r18238
11451145   m_maincpu = machine().device<cpu_device>("maincpu");
11461146   m_audiocpu = machine().device<cpu_device>("audiocpu");
11471147   m_ym = machine().device("ymsnd");
1148   m_sn = machine().device<sn76489a_new_device>("snsnd");
1148   m_sn = machine().device<sn76489a_device>("snsnd");
11491149   m_dac = machine().device<dac_device>("dac");
11501150
11511151   save_item(NAME(m_visible_page));
r18237r18238
12731273   /* sound hardware */
12741274   MCFG_SPEAKER_STANDARD_MONO("mono")
12751275
1276   MCFG_SOUND_ADD("snsnd", SN76489A_NEW, 16000000/4)     // SN76489AN actually
1276   MCFG_SOUND_ADD("snsnd", SN76489A, 16000000/4)     // SN76489AN actually
12771277   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50)
12781278   MCFG_SOUND_CONFIG(psg_intf)
12791279
r18237r18238
13931393   /* sound hardware */
13941394   MCFG_SPEAKER_STANDARD_MONO("mono")
13951395
1396   MCFG_SOUND_ADD("snsnd", SN76489A_NEW, 16000000/4)     // SN76489AN actually
1396   MCFG_SOUND_ADD("snsnd", SN76489A, 16000000/4)     // SN76489AN actually
13971397   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50)
13981398   MCFG_SOUND_CONFIG(psg_intf)
13991399
trunk/src/mame/drivers/senjyo.c
r18237r18238
160160static ADDRESS_MAP_START( senjyo_sound_map, AS_PROGRAM, 8, senjyo_state )
161161   AM_RANGE(0x0000, 0x3fff) AM_ROM
162162   AM_RANGE(0x4000, 0x43ff) AM_RAM
163   AM_RANGE(0x8000, 0x8000) AM_DEVWRITE("sn1", sn76496_new_device, write)
164   AM_RANGE(0x9000, 0x9000) AM_DEVWRITE("sn2", sn76496_new_device, write)
165   AM_RANGE(0xa000, 0xa000) AM_DEVWRITE("sn3", sn76496_new_device, write)
163   AM_RANGE(0x8000, 0x8000) AM_DEVWRITE("sn1", sn76496_device, write)
164   AM_RANGE(0x9000, 0x9000) AM_DEVWRITE("sn2", sn76496_device, write)
165   AM_RANGE(0xa000, 0xa000) AM_DEVWRITE("sn3", sn76496_device, write)
166166   AM_RANGE(0xd000, 0xd000) AM_WRITE(senjyo_volume_w)
167167#if 0
168168   AM_RANGE(0xe000, 0xe000) AM_WRITE_LEGACY(unknown)
r18237r18238
228228static ADDRESS_MAP_START( starforb_sound_map, AS_PROGRAM, 8, senjyo_state )
229229   AM_RANGE(0x0000, 0x3fff) AM_ROM
230230   AM_RANGE(0x4000, 0x43ff) AM_RAM
231   AM_RANGE(0x8000, 0x8000) AM_DEVWRITE("sn1", sn76496_new_device, write)
232   AM_RANGE(0x9000, 0x9000) AM_DEVWRITE("sn2", sn76496_new_device, write)
233   AM_RANGE(0xa000, 0xa000) AM_DEVWRITE("sn3", sn76496_new_device, write)
231   AM_RANGE(0x8000, 0x8000) AM_DEVWRITE("sn1", sn76496_device, write)
232   AM_RANGE(0x9000, 0x9000) AM_DEVWRITE("sn2", sn76496_device, write)
233   AM_RANGE(0xa000, 0xa000) AM_DEVWRITE("sn3", sn76496_device, write)
234234   AM_RANGE(0xd000, 0xd000) AM_WRITE(senjyo_volume_w)
235235#if 0
236236   AM_RANGE(0xe000, 0xe000) AM_WRITE_LEGACY(unknown)
r18237r18238
597597   /* sound hardware */
598598   MCFG_SPEAKER_STANDARD_MONO("mono")
599599
600   MCFG_SOUND_ADD("sn1", SN76496_NEW, 2000000)
600   MCFG_SOUND_ADD("sn1", SN76496, 2000000)
601601   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50)
602602   MCFG_SOUND_CONFIG(psg_intf)
603603
604   MCFG_SOUND_ADD("sn2", SN76496_NEW, 2000000)
604   MCFG_SOUND_ADD("sn2", SN76496, 2000000)
605605   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50)
606606   MCFG_SOUND_CONFIG(psg_intf)
607607
608   MCFG_SOUND_ADD("sn3", SN76496_NEW, 2000000)
608   MCFG_SOUND_ADD("sn3", SN76496, 2000000)
609609   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50)
610610   MCFG_SOUND_CONFIG(psg_intf)
611611
trunk/src/mame/drivers/lasso.c
r18237r18238
534534   /* sound hardware */
535535   MCFG_SPEAKER_STANDARD_MONO("mono")
536536
537   MCFG_SOUND_ADD("sn76489.1", SN76489_NEW, 2000000)
537   MCFG_SOUND_ADD("sn76489.1", SN76489, 2000000)
538538   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
539539   MCFG_SOUND_CONFIG(psg_intf)
540540
541   MCFG_SOUND_ADD("sn76489.2", SN76489_NEW, 2000000)
541   MCFG_SOUND_ADD("sn76489.2", SN76489, 2000000)
542542   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
543543   MCFG_SOUND_CONFIG(psg_intf)
544544MACHINE_CONFIG_END
trunk/src/mame/audio/qix.c
r18237r18238
273273
274274   MCFG_SPEAKER_STANDARD_MONO("mono")
275275
276   MCFG_SOUND_ADD("sn1", SN76489_NEW, SLITHER_CLOCK_OSC/4/4)
276   MCFG_SOUND_ADD("sn1", SN76489, SLITHER_CLOCK_OSC/4/4)
277277   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50)
278278   MCFG_SOUND_CONFIG(psg_intf)
279279
280   MCFG_SOUND_ADD("sn2", SN76489_NEW, SLITHER_CLOCK_OSC/4/4)
280   MCFG_SOUND_ADD("sn2", SN76489, SLITHER_CLOCK_OSC/4/4)
281281   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50)
282282   MCFG_SOUND_CONFIG(psg_intf)
283283MACHINE_CONFIG_END
trunk/src/mame/machine/megadriv.c
r18237r18238
822822      case 0x13:
823823      case 0x15:
824824      case 0x17:
825         // accessed by either segapsg_new_device or sn76496_new_device
825         // accessed by either segapsg_device or sn76496_device
826826         space.machine().device<sn76496_base_device>("snsnd")->write(space, 0, data);
827827         break;
828828
r18237r18238
12011201   MCFG_SOUND_ROUTE(1, "rspeaker", 0.50)
12021202
12031203   /* sound hardware */
1204   MCFG_SOUND_ADD("snsnd", SEGAPSG_NEW, MASTER_CLOCK_NTSC/15)
1204   MCFG_SOUND_ADD("snsnd", SEGAPSG, MASTER_CLOCK_NTSC/15)
12051205   MCFG_SOUND_CONFIG(psg_intf)
12061206   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "lspeaker", 0.25) /* 3.58 MHz */
12071207   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "rspeaker",0.25) /* 3.58 MHz */
r18237r18238
12561256   MCFG_SOUND_ROUTE(1, "rspeaker", 0.50)
12571257
12581258   /* sound hardware */
1259   MCFG_SOUND_ADD("snsnd", SEGAPSG_NEW, MASTER_CLOCK_PAL/15)
1259   MCFG_SOUND_ADD("snsnd", SEGAPSG, MASTER_CLOCK_PAL/15)
12601260   MCFG_SOUND_CONFIG(psg_intf)
12611261   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "lspeaker", 0.25) /* 3.58 MHz */
12621262   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "rspeaker",0.25) /* 3.58 MHz */
r18237r18238
12831283   MCFG_SOUND_ROUTE(1, "rspeaker", (0.50)/2)
12841284
12851285   /* sound hardware */
1286   MCFG_SOUND_ADD("snsnd", SEGAPSG_NEW, MASTER_CLOCK_NTSC/15)
1286   MCFG_SOUND_ADD("snsnd", SEGAPSG, MASTER_CLOCK_NTSC/15)
12871287   MCFG_SOUND_CONFIG(psg_intf)
12881288   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "lspeaker", (0.25)/2)
12891289   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "rspeaker", (0.25)/2)
r18237r18238
13051305   MCFG_SOUND_ROUTE(1, "rspeaker", (0.50)/2)
13061306
13071307   /* sound hardware */
1308   MCFG_SOUND_ADD("snsnd", SEGAPSG_NEW, MASTER_CLOCK_NTSC/15)
1308   MCFG_SOUND_ADD("snsnd", SEGAPSG, MASTER_CLOCK_NTSC/15)
13091309   MCFG_SOUND_CONFIG(psg_intf)
13101310   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "lspeaker", (0.25)/2)
13111311   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "rspeaker", (0.25)/2)
trunk/src/mame/machine/segamsys.c
r18237r18238
16491649   /* INIT THE PORTS *********************************************************************************************/
16501650
16511651   address_space &io = machine.device(tag)->memory().space(AS_IO);
1652   sn76496_new_device *sn = machine.device<sn76496_new_device>("snsnd");
1652   sn76496_device *sn = machine.device<sn76496_device>("snsnd");
16531653
16541654   io.install_legacy_readwrite_handler(0x0000, 0xffff, FUNC(z80_unmapped_port_r), FUNC(z80_unmapped_port_w));
16551655
16561656   io.install_legacy_read_handler      (0x7e, 0x7e, FUNC(md_sms_vdp_vcounter_r));
1657   io.install_write_handler            (0x7e, 0x7f, write8_delegate(FUNC(sn76496_new_device::write),sn));
1657   io.install_write_handler            (0x7e, 0x7f, write8_delegate(FUNC(sn76496_device::write),sn));
16581658   io.install_legacy_readwrite_handler (0xbe, 0xbe, FUNC(md_sms_vdp_data_r), FUNC(md_sms_vdp_data_w));
16591659   io.install_legacy_readwrite_handler (0xbf, 0xbf, FUNC(md_sms_vdp_ctrl_r), FUNC(md_sms_vdp_ctrl_w));
16601660
r18237r18238
17471747   /* sound hardware */
17481748   MCFG_SPEAKER_STANDARD_MONO("mono")
17491749
1750   MCFG_SOUND_ADD("snsnd", SN76496_NEW, 3579540)
1750   MCFG_SOUND_ADD("snsnd", SN76496, 3579540)
17511751   MCFG_SOUND_CONFIG(psg_intf)
17521752   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50)
17531753MACHINE_CONFIG_END
trunk/src/mame/machine/megavdp.c
r18237r18238
855855      case 0x14:
856856      case 0x16:
857857      {
858         // accessed by either segapsg_new_device or sn76496_new_device
858         // accessed by either segapsg_device or sn76496_device
859859         sn76496_base_device *sn = space.machine().device<sn76496_base_device>(":snsnd");
860860         if (ACCESSING_BITS_0_7) sn->write(space, 0, data & 0xff);
861861         //if (ACCESSING_BITS_8_15) sn->write(space, 0, (data>>8) & 0xff);
trunk/src/mame/includes/yiear.h
r18237r18238
1515   required_shared_ptr<UINT8> m_spriteram;
1616   required_shared_ptr<UINT8> m_spriteram2;
1717   required_shared_ptr<UINT8> m_videoram;
18   optional_device<sn76489a_new_device> m_sn;
18   optional_device<sn76489a_device> m_sn;
1919
2020   /* video-related */
2121   tilemap_t  *m_bg_tilemap;
trunk/src/mame/includes/trackfld.h
r18237r18238
2727   required_shared_ptr<UINT8> m_scroll2;
2828   required_shared_ptr<UINT8> m_videoram;
2929   required_shared_ptr<UINT8> m_colorram;
30   optional_device<sn76496_new_device> m_sn;
30   optional_device<sn76496_device> m_sn;
3131
3232   /* video-related */
3333   tilemap_t  *m_bg_tilemap;
trunk/src/mame/includes/hyperspt.h
r18237r18238
1818   required_shared_ptr<UINT8> m_scroll;
1919   required_shared_ptr<UINT8> m_videoram;
2020   required_shared_ptr<UINT8> m_colorram;
21   optional_device<sn76496_new_device> m_sn;
21   optional_device<sn76496_device> m_sn;
2222   UINT8 *  m_scroll2;
2323   UINT8 *  m_spriteram2;
2424
trunk/src/mame/includes/segag80r.h
r18237r18238
2020   required_shared_ptr<UINT8> m_mainram;
2121   required_shared_ptr<UINT8> m_videoram;
2222
23   optional_device<sn76496_new_device> m_sn1;
24   optional_device<sn76496_new_device> m_sn2;
23   optional_device<sn76496_device> m_sn1;
24   optional_device<sn76496_device> m_sn2;
2525
2626   UINT8 m_sound_state[2];
2727   UINT8 m_sound_rate;
trunk/src/mame/includes/sbasketb.h
r18237r18238
2222   required_shared_ptr<UINT8> m_palettebank;
2323   required_shared_ptr<UINT8> m_spriteram_select;
2424   required_shared_ptr<UINT8> m_scroll;
25   optional_device<sn76489_new_device> m_sn;
25   optional_device<sn76489_device> m_sn;
2626
2727   /* video-related */
2828   tilemap_t  *m_bg_tilemap;
trunk/src/mame/includes/circusc.h
r18237r18238
3838
3939   /* devices */
4040   cpu_device *m_audiocpu;
41   required_device<sn76496_new_device> m_sn_1;
42   required_device<sn76496_new_device> m_sn_2;
41   required_device<sn76496_device> m_sn_1;
42   required_device<sn76496_device> m_sn_2;
4343   dac_device *m_dac;
4444   required_device<discrete_device> m_discrete;
4545
trunk/src/mame/includes/qix.h
r18237r18238
3737      m_discrete(*this, "discrete") { }
3838
3939   /* devices */
40   optional_device<sn76489_new_device> m_sn1;
41   optional_device<sn76489_new_device> m_sn2;
40   optional_device<sn76489_device> m_sn1;
41   optional_device<sn76489_device> m_sn2;
4242
4343   /* machine state */
4444   optional_shared_ptr<UINT8> m_68705_port_out;
trunk/src/mame/includes/lasso.h
r18237r18238
4141   /* devices */
4242   cpu_device *m_maincpu;
4343   cpu_device *m_audiocpu;
44   optional_device<sn76489_new_device> m_sn_1;
45   optional_device<sn76489_new_device> m_sn_2;
44   optional_device<sn76489_device> m_sn_1;
45   optional_device<sn76489_device> m_sn_2;
4646   DECLARE_WRITE8_MEMBER(sound_command_w);
4747   DECLARE_WRITE8_MEMBER(pinbo_sound_command_w);
4848   DECLARE_READ8_MEMBER(sound_status_r);
trunk/src/mame/includes/spcforce.h
r18237r18238
1717   required_shared_ptr<UINT8> m_videoram;
1818   required_shared_ptr<UINT8> m_colorram;
1919
20   required_device<sn76496_new_device> m_sn1;
21    required_device<sn76496_new_device> m_sn2;
22    required_device<sn76496_new_device> m_sn3;
20   required_device<sn76496_device> m_sn1;
21    required_device<sn76496_device> m_sn2;
22    required_device<sn76496_device> m_sn3;
2323
2424   int m_sn76496_latch;
2525   int m_sn76496_select;
trunk/src/mame/includes/homedata.h
r18237r18238
4040   cpu_device *m_audiocpu;
4141   dac_device *m_dac;
4242   device_t *m_ym;
43   sn76489a_new_device *m_sn;
43   sn76489a_device *m_sn;
4444   UINT8 m_prot_data;
4545   DECLARE_READ8_MEMBER(mrokumei_keyboard_r);
4646   DECLARE_WRITE8_MEMBER(mrokumei_keyboard_select_w);
trunk/src/mame/includes/gberet.h
r18237r18238
2828   optional_shared_ptr<UINT8> m_soundlatch;
2929
3030   /* devices */
31   required_device<sn76489a_new_device> m_sn;
31   required_device<sn76489a_device> m_sn;
3232
3333   /* video-related */
3434   tilemap_t * m_bg_tilemap;
trunk/src/emu/sound/sn76496.c
r18237r18238
409409//  save_item(NAME(m_freq0_is_max));
410410}
411411
412const device_type SN76496_NEW = &device_creator<sn76496_new_device>;
413const device_type U8106_NEW = &device_creator<u8106_new_device>;
414const device_type Y2404_NEW = &device_creator<y2404_new_device>;
415const device_type SN76489_NEW = &device_creator<sn76489_new_device>;
416const device_type SN76489A_NEW = &device_creator<sn76489a_new_device>;
417const device_type SN76494_NEW = &device_creator<sn76494_new_device>;
418const device_type SN94624_NEW = &device_creator<sn94624_new_device>;
419const device_type NCR7496_NEW = &device_creator<ncr7496_new_device>;
420const device_type GAMEGEAR_NEW = &device_creator<gamegear_new_device>;
421const device_type SEGAPSG_NEW = &device_creator<segapsg_new_device>;
412const device_type SN76496 = &device_creator<sn76496_device>;
413const device_type U8106 = &device_creator<u8106_device>;
414const device_type Y2404 = &device_creator<y2404_device>;
415const device_type SN76489 = &device_creator<sn76489_device>;
416const device_type SN76489A = &device_creator<sn76489a_device>;
417const device_type SN76494 = &device_creator<sn76494_device>;
418const device_type SN94624 = &device_creator<sn94624_device>;
419const device_type NCR7496 = &device_creator<ncr7496_device>;
420const device_type GAMEGEAR = &device_creator<gamegear_device>;
421const device_type SEGAPSG = &device_creator<segapsg_device>;
422422
trunk/src/emu/sound/sn76496.h
r18237r18238
44#define __SN76496_H__
55
66
7extern const device_type SN76496_NEW;
8extern const device_type U8106_NEW;
9extern const device_type Y2404_NEW;
10extern const device_type SN76489_NEW;
11extern const device_type SN76489A_NEW;
12extern const device_type SN76494_NEW;
13extern const device_type SN94624_NEW;
14extern const device_type NCR7496_NEW;
15extern const device_type GAMEGEAR_NEW;
16extern const device_type SEGAPSG_NEW;
7extern const device_type SN76496;
8extern const device_type U8106;
9extern const device_type Y2404;
10extern const device_type SN76489;
11extern const device_type SN76489A;
12extern const device_type SN76494;
13extern const device_type SN94624;
14extern const device_type NCR7496;
15extern const device_type GAMEGEAR;
16extern const device_type SEGAPSG;
1717
1818struct sn76496_config
1919{
r18237r18238
6868};
6969
7070// SN76496: Whitenoise verified, phase verified, periodic verified (by Michael Zapf)
71class sn76496_new_device : public sn76496_base_device
71class sn76496_device : public sn76496_base_device
7272{
7373public:
74   sn76496_new_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
75   :  sn76496_base_device(mconfig, SN76496_NEW, "SN76496_NEW", tag, 0x10000, 0x04, 0x08, false, false, 8, true, owner, clock)
74   sn76496_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
75   :  sn76496_base_device(mconfig, SN76496, "SN76496", tag, 0x10000, 0x04, 0x08, false, false, 8, true, owner, clock)
7676   { }
7777};
7878
7979// U8106 not verified yet. todo: verify; (a custom marked sn76489? only used on mr. do and maybe other universal games)
80class u8106_new_device : public sn76496_base_device
80class u8106_device : public sn76496_base_device
8181{
8282public:
83   u8106_new_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
84   :  sn76496_base_device(mconfig, U8106_NEW, "U8106_NEW", tag, 0x4000, 0x01, 0x02, true, false, 8, true, owner, clock)
83   u8106_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
84   :  sn76496_base_device(mconfig, U8106, "U8106", tag, 0x4000, 0x01, 0x02, true, false, 8, true, owner, clock)
8585   { }
8686};
8787
8888// Y2404 not verified yet. todo: verify; (don't be fooled by the Y, it's a TI chip, not Yamaha)
89class y2404_new_device : public sn76496_base_device
89class y2404_device : public sn76496_base_device
9090{
9191public:
92   y2404_new_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
93   :  sn76496_base_device(mconfig, Y2404_NEW, "Y2404_NEW", tag, 0x10000, 0x04, 0x08, false, false, 8, true, owner, clock)
92   y2404_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
93   :  sn76496_base_device(mconfig, Y2404, "Y2404", tag, 0x10000, 0x04, 0x08, false, false, 8, true, owner, clock)
9494   { }
9595};
9696
9797// SN76489 not verified yet. todo: verify;
98class sn76489_new_device : public sn76496_base_device
98class sn76489_device : public sn76496_base_device
9999{
100100public:
101   sn76489_new_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
102   :  sn76496_base_device(mconfig, SN76489_NEW, "SN76489_NEW", tag, 0x4000, 0x01, 0x02, true, false, 8, true, owner, clock)
101   sn76489_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
102   :  sn76496_base_device(mconfig, SN76489, "SN76489", tag, 0x4000, 0x01, 0x02, true, false, 8, true, owner, clock)
103103   { }
104104};
105105
106106// SN76489A: whitenoise verified, phase verified, periodic verified (by plgdavid)
107class sn76489a_new_device : public sn76496_base_device
107class sn76489a_device : public sn76496_base_device
108108{
109109public:
110   sn76489a_new_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
111   :  sn76496_base_device(mconfig, SN76489A_NEW, "SN76489A_NEW", tag, 0x10000, 0x04, 0x08, false, false, 8, true, owner, clock)
110   sn76489a_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
111   :  sn76496_base_device(mconfig, SN76489A, "SN76489A", tag, 0x10000, 0x04, 0x08, false, false, 8, true, owner, clock)
112112   { }
113113};
114114
115115// SN76494 not verified, (according to datasheet: same as sn76489a but without the /8 divider)
116class sn76494_new_device : public sn76496_base_device
116class sn76494_device : public sn76496_base_device
117117{
118118public:
119   sn76494_new_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
120   :  sn76496_base_device(mconfig, SN76494_NEW, "SN76494_NEW", tag, 0x10000, 0x04, 0x08, false, false, 1, true, owner, clock)
119   sn76494_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
120   :  sn76496_base_device(mconfig, SN76494, "SN76494", tag, 0x10000, 0x04, 0x08, false, false, 1, true, owner, clock)
121121   { }
122122};
123123
124124// SN94624 whitenoise verified, phase verified, period verified; verified by PlgDavid
125class sn94624_new_device : public sn76496_base_device
125class sn94624_device : public sn76496_base_device
126126{
127127public:
128   sn94624_new_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
129   :  sn76496_base_device(mconfig, SN94624_NEW, "SN94624_NEW", tag, 0x4000, 0x01, 0x02, true, false, 1, true, owner, clock)
128   sn94624_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
129   :  sn76496_base_device(mconfig, SN94624, "SN94624", tag, 0x4000, 0x01, 0x02, true, false, 1, true, owner, clock)
130130   { }
131131};
132132
133133// NCR7496 not verified; info from smspower wiki
134class ncr7496_new_device : public sn76496_base_device
134class ncr7496_device : public sn76496_base_device
135135{
136136public:
137   ncr7496_new_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
138   :  sn76496_base_device(mconfig, NCR7496_NEW, "NCR7496_NEW", tag, 0x8000, 0x02, 0x20, false, false, 8, true, owner, clock)
137   ncr7496_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
138   :  sn76496_base_device(mconfig, NCR7496, "NCR7496", tag, 0x8000, 0x02, 0x20, false, false, 8, true, owner, clock)
139139   { }
140140};
141141
142142// Verified by Justin Kerk
143class gamegear_new_device : public sn76496_base_device
143class gamegear_device : public sn76496_base_device
144144{
145145public:
146   gamegear_new_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
147   :  sn76496_base_device(mconfig, GAMEGEAR_NEW, "Game Gear PSG_NEW", tag, 0x8000, 0x01, 0x08, true, true, 8, false, owner, clock)
146   gamegear_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
147   :  sn76496_base_device(mconfig, GAMEGEAR, "Game Gear PSG", tag, 0x8000, 0x01, 0x08, true, true, 8, false, owner, clock)
148148   { }
149149};
150150
151151// todo: verify; from smspower wiki, assumed to have same invert as gamegear
152class segapsg_new_device : public sn76496_base_device
152class segapsg_device : public sn76496_base_device
153153{
154154public:
155   segapsg_new_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
156   :  sn76496_base_device(mconfig, SEGAPSG_NEW, "SEGA VDP PSG_NEW", tag, 0x8000, 0x01, 0x08, true, false, 8, false, owner, clock)
155   segapsg_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
156   :  sn76496_base_device(mconfig, SEGAPSG, "SEGA VDP PSG", tag, 0x8000, 0x01, 0x08, true, false, 8, false, owner, clock)
157157   { }
158158};
159159
trunk/src/mess/drivers/sms.c
r18237r18238
116116   AM_RANGE(0x00, 0x00) AM_MIRROR(0x3e) AM_WRITE(sms_bios_w)
117117   AM_RANGE(0x01, 0x01) AM_MIRROR(0x3e) AM_WRITE(sms_io_control_w)
118118   AM_RANGE(0x40, 0x7f)                 AM_READ(sms_count_r)
119   AM_RANGE(0x40, 0x7f)                 AM_DEVWRITE("segapsg", segapsg_new_device, write)
119   AM_RANGE(0x40, 0x7f)                 AM_DEVWRITE("segapsg", segapsg_device, write)
120120   AM_RANGE(0x80, 0x80) AM_MIRROR(0x3e) AM_DEVREADWRITE("sms_vdp", sega315_5124_device, vram_read, vram_write)
121121   AM_RANGE(0x81, 0x81) AM_MIRROR(0x3e) AM_DEVREADWRITE("sms_vdp", sega315_5124_device, register_read, register_write)
122122   AM_RANGE(0xc0, 0xc0) AM_MIRROR(0x1e) AM_READ(sms_input_port_0_r)
r18237r18238
138138   ADDRESS_MAP_UNMAP_HIGH
139139   AM_RANGE(0x00, 0x00)                 AM_READ(gg_input_port_2_r)
140140   AM_RANGE(0x01, 0x05)                 AM_READWRITE(gg_sio_r, gg_sio_w)
141   AM_RANGE(0x06, 0x06)                 AM_DEVWRITE("gamegear", gamegear_new_device, stereo_w)
141   AM_RANGE(0x06, 0x06)                 AM_DEVWRITE("gamegear", gamegear_device, stereo_w)
142142   AM_RANGE(0x07, 0x07)                 AM_WRITE(sms_io_control_w)
143143   AM_RANGE(0x08, 0x08) AM_MIRROR(0x06) AM_WRITE(sms_bios_w)
144144   AM_RANGE(0x09, 0x09) AM_MIRROR(0x06) AM_WRITE(sms_io_control_w)
r18237r18238
147147   AM_RANGE(0x20, 0x20) AM_MIRROR(0x1e) AM_WRITE(sms_bios_w)
148148   AM_RANGE(0x21, 0x21) AM_MIRROR(0x1e) AM_WRITE(sms_io_control_w)
149149   AM_RANGE(0x40, 0x7f)                 AM_READ(sms_count_r)
150   AM_RANGE(0x40, 0x7f)                 AM_DEVWRITE("gamegear", gamegear_new_device, write)
150   AM_RANGE(0x40, 0x7f)                 AM_DEVWRITE("gamegear", gamegear_device, write)
151151   AM_RANGE(0x80, 0x80) AM_MIRROR(0x3e) AM_DEVREADWRITE("sms_vdp", sega315_5124_device, vram_read, vram_write)
152152   AM_RANGE(0x81, 0x81) AM_MIRROR(0x3e) AM_DEVREADWRITE("sms_vdp", sega315_5124_device, register_read, register_write)
153153   AM_RANGE(0xc0, 0xc0)                 AM_READ_PORT("PORT_DC")
r18237r18238
381381
382382   /* sound hardware */
383383   MCFG_SPEAKER_STANDARD_MONO("mono")
384   MCFG_SOUND_ADD("segapsg", SEGAPSG_NEW, XTAL_53_693175MHz/15)
384   MCFG_SOUND_ADD("segapsg", SEGAPSG, XTAL_53_693175MHz/15)
385385   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00)
386386   MCFG_SOUND_CONFIG(psg_intf)
387387
r18237r18238
492492
493493   /* sound hardware */
494494   MCFG_SPEAKER_STANDARD_MONO("mono")
495   MCFG_SOUND_ADD("segapsg", SEGAPSG_NEW, MASTER_CLOCK_PAL/15)
495   MCFG_SOUND_ADD("segapsg", SEGAPSG, MASTER_CLOCK_PAL/15)
496496   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00)
497497   MCFG_SOUND_CONFIG(psg_intf)
498498
r18237r18238
597597
598598   /* sound hardware */
599599   MCFG_SPEAKER_STANDARD_STEREO("lspeaker","rspeaker")
600   MCFG_SOUND_ADD("gamegear", GAMEGEAR_NEW, XTAL_53_693175MHz/15)
600   MCFG_SOUND_ADD("gamegear", GAMEGEAR, XTAL_53_693175MHz/15)
601601   MCFG_SOUND_CONFIG(psg_intf)
602602   MCFG_SOUND_ROUTE(0, "lspeaker", 1.00)
603603   MCFG_SOUND_ROUTE(1, "rspeaker", 1.00)
trunk/src/mess/drivers/apricot.c
r18237r18238
287287   AM_RANGE(0x00, 0x03) AM_DEVREADWRITE8_LEGACY("ic31", pic8259_r, pic8259_w, 0x00ff)
288288   AM_RANGE(0x40, 0x47) AM_DEVREADWRITE8_LEGACY("ic68", wd17xx_r, wd17xx_w, 0x00ff)
289289   AM_RANGE(0x48, 0x4f) AM_DEVREADWRITE8("ic17", i8255_device, read, write, 0x00ff)
290   AM_RANGE(0x50, 0x51) AM_MIRROR(0x06) AM_DEVWRITE8("ic7", sn76489_new_device, write, 0x00ff)
290   AM_RANGE(0x50, 0x51) AM_MIRROR(0x06) AM_DEVWRITE8("ic7", sn76489_device, write, 0x00ff)
291291   AM_RANGE(0x58, 0x5f) AM_DEVREADWRITE8_LEGACY("ic16", pit8253_r, pit8253_w, 0x00ff)
292292   AM_RANGE(0x60, 0x67) AM_DEVREADWRITE8("ic15", z80sio_device, read_alt, write_alt, 0x00ff)
293293   AM_RANGE(0x68, 0x69) AM_MIRROR(0x04) AM_DEVWRITE8("ic30", mc6845_device, address_w, 0x00ff)
r18237r18238
381381
382382   /* sound hardware */
383383   MCFG_SPEAKER_STANDARD_MONO("mono")
384   MCFG_SOUND_ADD("ic7", SN76489_NEW, XTAL_4MHz / 2)
384   MCFG_SOUND_ADD("ic7", SN76489, XTAL_4MHz / 2)
385385   MCFG_SOUND_CONFIG(psg_intf)
386386   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
387387
trunk/src/mess/drivers/mz700.c
r18237r18238
134134   AM_RANGE(0xeb, 0xeb) AM_WRITE(mz800_ramaddr_w )
135135   AM_RANGE(0xf0, 0xf0) AM_READ_PORT("atari_joy1") AM_WRITE(mz800_palette_w)
136136   AM_RANGE(0xf1, 0xf1) AM_READ_PORT("atari_joy2")
137   AM_RANGE(0xf2, 0xf2) AM_DEVWRITE("sn76489n", sn76489_new_device, write)
137   AM_RANGE(0xf2, 0xf2) AM_DEVWRITE("sn76489n", sn76489_device, write)
138138   AM_RANGE(0xfc, 0xff) AM_DEVREADWRITE("z80pio", z80pio_device, read, write)
139139ADDRESS_MAP_END
140140
r18237r18238
398398   MCFG_SCREEN_MODIFY("screen")
399399   MCFG_SCREEN_UPDATE_DRIVER(mz_state, screen_update_mz800)
400400
401   MCFG_SOUND_ADD("sn76489n", SN76489_NEW, XTAL_17_73447MHz/5)
401   MCFG_SOUND_ADD("sn76489n", SN76489, XTAL_17_73447MHz/5)
402402   MCFG_SOUND_CONFIG(psg_intf)
403403   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
404404
trunk/src/mess/drivers/coleco.c
r18237r18238
9999   AM_RANGE(0xa0, 0xa0) AM_MIRROR(0x1e) AM_DEVREADWRITE("tms9928a", tms9928a_device, vram_read, vram_write)
100100   AM_RANGE(0xa1, 0xa1) AM_MIRROR(0x1e) AM_DEVREADWRITE("tms9928a", tms9928a_device, register_read, register_write)
101101   AM_RANGE(0xc0, 0xc0) AM_MIRROR(0x1f) AM_WRITE(paddle_on_w)
102   AM_RANGE(0xe0, 0xe0) AM_MIRROR(0x1f) AM_DEVWRITE("sn76489a", sn76489a_new_device, write)
102   AM_RANGE(0xe0, 0xe0) AM_MIRROR(0x1f) AM_DEVWRITE("sn76489a", sn76489a_device, write)
103103   AM_RANGE(0xe0, 0xe0) AM_MIRROR(0x1d) AM_READ(paddle_1_r)
104104   AM_RANGE(0xe2, 0xe2) AM_MIRROR(0x1d) AM_READ(paddle_2_r)
105105ADDRESS_MAP_END
r18237r18238
116116   AM_RANGE(0xa0, 0xa0) AM_MIRROR(0x1e) AM_DEVREADWRITE("tms9928a", tms9928a_device, vram_read, vram_write)
117117   AM_RANGE(0xa1, 0xa1) AM_MIRROR(0x1e) AM_DEVREADWRITE("tms9928a", tms9928a_device, register_read, register_write)
118118   AM_RANGE(0xc0, 0xc0) AM_MIRROR(0x1f) AM_WRITE(paddle_on_w)
119   AM_RANGE(0xe0, 0xe0) AM_MIRROR(0x1f) AM_DEVWRITE("sn76489a", sn76489a_new_device, write)
119   AM_RANGE(0xe0, 0xe0) AM_MIRROR(0x1f) AM_DEVWRITE("sn76489a", sn76489a_device, write)
120120   AM_RANGE(0xe0, 0xe0) AM_MIRROR(0x1d) AM_READ(paddle_1_r)
121121   AM_RANGE(0xe2, 0xe2) AM_MIRROR(0x1d) AM_READ(paddle_2_r)
122122ADDRESS_MAP_END
r18237r18238
325325
326326   // sound hardware
327327   MCFG_SPEAKER_STANDARD_MONO("mono")
328   MCFG_SOUND_ADD("sn76489a", SN76489A_NEW, XTAL_7_15909MHz/2)   /* 3.579545 MHz */
328   MCFG_SOUND_ADD("sn76489a", SN76489A, XTAL_7_15909MHz/2)   /* 3.579545 MHz */
329329   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00)
330330   MCFG_SOUND_CONFIG(psg_intf)
331331
r18237r18238
354354
355355   // sound hardware
356356   MCFG_SPEAKER_STANDARD_MONO("mono")
357   MCFG_SOUND_ADD("sn76489a", SN76489A_NEW, XTAL_7_15909MHz/2)   // ???
357   MCFG_SOUND_ADD("sn76489a", SN76489A, XTAL_7_15909MHz/2)   // ???
358358   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00)
359359   MCFG_SOUND_CONFIG(psg_intf)
360360
trunk/src/mess/drivers/m5.c
r18237r18238
255255   AM_RANGE(0x00, 0x03) AM_MIRROR(0x0c) AM_DEVREADWRITE(Z80CTC_TAG, z80ctc_device, read, write)
256256   AM_RANGE(0x10, 0x10) AM_MIRROR(0x0e) AM_DEVREADWRITE("tms9928a", tms9928a_device, vram_read, vram_write)
257257   AM_RANGE(0x11, 0x11) AM_MIRROR(0x0e) AM_DEVREADWRITE("tms9928a", tms9928a_device, register_read, register_write)
258   AM_RANGE(0x20, 0x20) AM_MIRROR(0x0f) AM_DEVWRITE(SN76489AN_TAG, sn76489a_new_device, write)
258   AM_RANGE(0x20, 0x20) AM_MIRROR(0x0f) AM_DEVWRITE(SN76489AN_TAG, sn76489a_device, write)
259259   AM_RANGE(0x30, 0x30) AM_READ_PORT("Y0") // 64KBF bank select
260260   AM_RANGE(0x31, 0x31) AM_READ_PORT("Y1")
261261   AM_RANGE(0x32, 0x32) AM_READ_PORT("Y2")
r18237r18238
673673
674674   // sound hardware
675675   MCFG_SPEAKER_STANDARD_MONO("mono")
676   MCFG_SOUND_ADD(SN76489AN_TAG, SN76489A_NEW, XTAL_14_31818MHz/4)
676   MCFG_SOUND_ADD(SN76489AN_TAG, SN76489A, XTAL_14_31818MHz/4)
677677   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00)
678678   MCFG_SOUND_CONFIG(psg_intf)
679679
trunk/src/mess/drivers/pv2000.c
r18237r18238
190190   AM_RANGE(0x20, 0x20) AM_READWRITE(pv2000_keys_lo_r, pv2000_keys_w)
191191
192192   //sn76489a
193   AM_RANGE(0x40, 0x40) AM_READ(pv2000_keys_mod_r) AM_DEVWRITE("sn76489a", sn76489a_new_device, write)
193   AM_RANGE(0x40, 0x40) AM_READ(pv2000_keys_mod_r) AM_DEVWRITE("sn76489a", sn76489a_device, write)
194194
195195   /* Cassette input. Gets hit a lot after a GLOAD command */
196196   AM_RANGE(0x60, 0x60) AM_READWRITE(cass_in,cass_out)
r18237r18238
434434
435435   // sound hardware
436436   MCFG_SPEAKER_STANDARD_MONO("mono")
437   MCFG_SOUND_ADD("sn76489a", SN76489A_NEW, XTAL_7_15909MHz/2)   /* 3.579545 MHz */
437   MCFG_SOUND_ADD("sn76489a", SN76489A, XTAL_7_15909MHz/2)   /* 3.579545 MHz */
438438   MCFG_SOUND_CONFIG(psg_intf)
439439   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00)
440440   MCFG_SOUND_WAVE_ADD(WAVE_TAG, CASSETTE_TAG)
trunk/src/mess/drivers/rx78.c
r18237r18238
278278   AM_RANGE(0xf5, 0xfb) AM_WRITE(vdp_reg_w) //vdp
279279   AM_RANGE(0xfc, 0xfc) AM_WRITE(vdp_bg_reg_w) //vdp
280280   AM_RANGE(0xfe, 0xfe) AM_WRITE(vdp_pri_mask_w)
281   AM_RANGE(0xff, 0xff) AM_DEVWRITE("sn1", sn76489a_new_device, write) //psg
281   AM_RANGE(0xff, 0xff) AM_DEVWRITE("sn1", sn76489a_device, write) //psg
282282ADDRESS_MAP_END
283283
284284/* Input ports */
r18237r18238
503503   MCFG_SPEAKER_STANDARD_MONO("mono")
504504   MCFG_SOUND_WAVE_ADD(WAVE_TAG, CASSETTE_TAG)
505505   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25)
506   MCFG_SOUND_ADD("sn1", SN76489A_NEW, XTAL_28_63636MHz/8) // unknown divider
506   MCFG_SOUND_ADD("sn1", SN76489A, XTAL_28_63636MHz/8) // unknown divider
507507   MCFG_SOUND_CONFIG(psg_intf)
508508   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50)
509509
trunk/src/mess/drivers/apricotp.c
r18237r18238
318318   AM_RANGE(0x020, 0x021) AM_DEVWRITE8(CENTRONICS_TAG, centronics_device, write, 0x00ff)
319319   AM_RANGE(0x022, 0x023) AM_WRITE8(pint_clr_w, 0x00ff)
320320   AM_RANGE(0x024, 0x025) AM_READ8(prtr_snd_r, 0x00ff)
321   AM_RANGE(0x026, 0x027) AM_DEVWRITE8(SN76489AN_TAG, sn76489a_new_device, write, 0x00ff)
321   AM_RANGE(0x026, 0x027) AM_DEVWRITE8(SN76489AN_TAG, sn76489a_device, write, 0x00ff)
322322   AM_RANGE(0x028, 0x029) AM_WRITE8(contrast_w, 0x00ff)
323323   AM_RANGE(0x02a, 0x02b) AM_WRITE8(palette_w, 0x00ff)
324324   AM_RANGE(0x02e, 0x02f) AM_WRITE(video_w)
r18237r18238
617617
618618   // sound hardware
619619   MCFG_SPEAKER_STANDARD_MONO("mono")
620   MCFG_SOUND_ADD(SN76489AN_TAG, SN76489A_NEW, 2000000)
620   MCFG_SOUND_ADD(SN76489AN_TAG, SN76489A, 2000000)
621621   MCFG_SOUND_CONFIG(psg_intf)
622622   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00)
623623
trunk/src/mess/drivers/mtx.c
r18237r18238
370370
371371   /* sound hardware */
372372   MCFG_SPEAKER_STANDARD_MONO("mono")
373   MCFG_SOUND_ADD(SN76489A_TAG, SN76489A_NEW, XTAL_4MHz)
373   MCFG_SOUND_ADD(SN76489A_TAG, SN76489A, XTAL_4MHz)
374374   MCFG_SOUND_CONFIG(psg_intf)
375375   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00)
376376
trunk/src/mess/drivers/mycom.c
r18237r18238
8484   required_device<device_t> m_wave;
8585   required_device<mc6845_device> m_crtc;
8686   required_device<device_t> m_fdc;
87   required_device<sn76489_new_device> m_audio;
87   required_device<sn76489_device> m_audio;
8888   required_device<msm5832_device> m_rtc;
8989   DECLARE_READ8_MEMBER( mycom_upper_r );
9090   DECLARE_WRITE8_MEMBER( mycom_upper_w );
r18237r18238
609609   MCFG_SPEAKER_STANDARD_MONO("mono")
610610   MCFG_SOUND_WAVE_ADD(WAVE_TAG, CASSETTE_TAG)
611611   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25)
612   MCFG_SOUND_ADD("sn1", SN76489_NEW, XTAL_10MHz / 4)
612   MCFG_SOUND_ADD("sn1", SN76489, XTAL_10MHz / 4)
613613   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.50)
614614   MCFG_SOUND_CONFIG(psg_intf)
615615
trunk/src/mess/drivers/bbc.c
r18237r18238
864864
865865   /* sound hardware */
866866   MCFG_SPEAKER_STANDARD_MONO("mono")
867   MCFG_SOUND_ADD("sn76489", SN76489_NEW, 4000000)   /* 4 MHz */
867   MCFG_SOUND_ADD("sn76489", SN76489, 4000000)   /* 4 MHz */
868868   MCFG_SOUND_CONFIG(psg_intf)
869869   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00)
870870//  MCFG_SOUND_ADD("tms5220", TMS5220, tms5220_interface)
r18237r18238
958958
959959   /* sound hardware */
960960   MCFG_SPEAKER_STANDARD_MONO("mono")
961   MCFG_SOUND_ADD("sn76489", SN76489_NEW, 4000000)   /* 4 MHz */
961   MCFG_SOUND_ADD("sn76489", SN76489, 4000000)   /* 4 MHz */
962962   MCFG_SOUND_CONFIG(psg_intf)
963963   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00)
964964
trunk/src/mess/drivers/smc777.c
r18237r18238
3636   m_sn(*this, "sn1")
3737   { }
3838
39   optional_device<sn76489a_new_device> m_sn;
39   optional_device<sn76489a_device> m_sn;
4040   UINT16 m_cursor_addr;
4141   UINT16 m_cursor_raster;
4242   UINT8 m_keyb_press;
r18237r18238
11021102
11031103   MCFG_SPEAKER_STANDARD_MONO("mono")
11041104
1105   MCFG_SOUND_ADD("sn1", SN76489A_NEW, MASTER_CLOCK) // unknown clock / divider
1105   MCFG_SOUND_ADD("sn1", SN76489A, MASTER_CLOCK) // unknown clock / divider
11061106   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50)
11071107   MCFG_SOUND_CONFIG(psg_intf)
11081108
trunk/src/mess/drivers/crvision.c
r18237r18238
976976
977977   // sound hardware
978978   MCFG_SPEAKER_STANDARD_MONO("mono")
979   MCFG_SOUND_ADD(SN76489_TAG, SN76489A_NEW, XTAL_2MHz)
979   MCFG_SOUND_ADD(SN76489_TAG, SN76489A, XTAL_2MHz)
980980   MCFG_SOUND_CONFIG(psg_intf)
981981   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00)
982982
r18237r18238
10431043
10441044   // sound hardware
10451045   MCFG_SPEAKER_STANDARD_MONO("mono")
1046   MCFG_SOUND_ADD(SN76489_TAG, SN76489A_NEW, XTAL_17_73447MHz/9)
1046   MCFG_SOUND_ADD(SN76489_TAG, SN76489A, XTAL_17_73447MHz/9)
10471047   MCFG_SOUND_CONFIG(psg_intf)
10481048   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00)
10491049
trunk/src/mess/drivers/adam.c
r18237r18238
12461246   AM_RANGE(0xa0, 0xa0) AM_MIRROR(0x1e) AM_DEVREADWRITE("tms9928a", tms9928a_device, vram_read, vram_write)
12471247   AM_RANGE(0xa1, 0xa1) AM_MIRROR(0x1e) AM_DEVREADWRITE("tms9928a", tms9928a_device, register_read, register_write)
12481248   AM_RANGE(0xc0, 0xc0) AM_MIRROR(0x1f) AM_WRITE(joystick_w)
1249   AM_RANGE(0xe0, 0xe0) AM_MIRROR(0x1f) AM_DEVWRITE(SN76489A_TAG, sn76489a_new_device, write)
1249   AM_RANGE(0xe0, 0xe0) AM_MIRROR(0x1f) AM_DEVWRITE(SN76489A_TAG, sn76489a_device, write)
12501250   AM_RANGE(0xe0, 0xe0) AM_MIRROR(0x1d) AM_READ(input1_r)
12511251   AM_RANGE(0xe2, 0xe2) AM_MIRROR(0x1d) AM_READ(input2_r)
12521252ADDRESS_MAP_END
r18237r18238
17251725
17261726   // sound hardware
17271727   MCFG_SPEAKER_STANDARD_MONO("mono")
1728   MCFG_SOUND_ADD(SN76489A_TAG, SN76489A_NEW, XTAL_7_15909MHz/2)
1728   MCFG_SOUND_ADD(SN76489A_TAG, SN76489A, XTAL_7_15909MHz/2)
17291729   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00)
17301730    MCFG_SOUND_CONFIG(psg_intf)
17311731
trunk/src/mess/drivers/pc.c
r18237r18238
363363   AM_RANGE(0x0040, 0x0043) AM_DEVREADWRITE_LEGACY("pit8253", pit8253_r, pit8253_w)
364364   AM_RANGE(0x0060, 0x0063) AM_READWRITE_LEGACY(tandy1000_pio_r,         tandy1000_pio_w)
365365   AM_RANGE(0x0080, 0x0087) AM_READWRITE(pc_page_r,            pc_page_w)
366   AM_RANGE(0x00c0, 0x00c0) AM_DEVWRITE("sn76496",   ncr7496_new_device, write)
366   AM_RANGE(0x00c0, 0x00c0) AM_DEVWRITE("sn76496",   ncr7496_device, write)
367367   AM_RANGE(0x0200, 0x0207) AM_READWRITE_LEGACY(pc_JOY_r,               pc_JOY_w)
368368   AM_RANGE(0x02f8, 0x02ff) AM_DEVREADWRITE("ins8250_1", ins8250_device, ins8250_r, ins8250_w)
369369   AM_RANGE(0x0378, 0x037f) AM_READWRITE_LEGACY(pc_t1t_p37x_r,         pc_t1t_p37x_w)
r18237r18238
393393   AM_RANGE(0x0040, 0x0043) AM_DEVREADWRITE8_LEGACY("pit8253", pit8253_r, pit8253_w, 0xffff)
394394   AM_RANGE(0x0060, 0x0063) AM_READWRITE8_LEGACY(tandy1000_pio_r,         tandy1000_pio_w, 0xffff)
395395   AM_RANGE(0x0080, 0x0087) AM_READWRITE8(pc_page_r,            pc_page_w, 0xffff)
396   AM_RANGE(0x00c0, 0x00c1) AM_DEVWRITE8("sn76496",   ncr7496_new_device, write, 0xffff)
396   AM_RANGE(0x00c0, 0x00c1) AM_DEVWRITE8("sn76496",   ncr7496_device, write, 0xffff)
397397   AM_RANGE(0x0200, 0x0207) AM_READWRITE8_LEGACY(pc_JOY_r,               pc_JOY_w, 0xffff)
398398   AM_RANGE(0x02f8, 0x02ff) AM_DEVREADWRITE8("ins8250_1", ins8250_device, ins8250_r, ins8250_w, 0xffff)
399399   AM_RANGE(0x0378, 0x037f) AM_READWRITE8_LEGACY(pc_t1t_p37x_r,         pc_t1t_p37x_w, 0xffff)
r18237r18238
424424   AM_RANGE(0x0040, 0x0043) AM_DEVREADWRITE8_LEGACY("pit8253", pit8253_r, pit8253_w, 0xffff)
425425   AM_RANGE(0x0060, 0x0063) AM_READWRITE8_LEGACY(tandy1000_pio_r,         tandy1000_pio_w, 0xffff)
426426   AM_RANGE(0x0080, 0x0087) AM_READWRITE8(pc_page_r,               pc_page_w, 0xffff)
427   AM_RANGE(0x00c0, 0x00c1) AM_DEVWRITE8("sn76496", ncr7496_new_device, write, 0xffff)
427   AM_RANGE(0x00c0, 0x00c1) AM_DEVWRITE8("sn76496", ncr7496_device, write, 0xffff)
428428   AM_RANGE(0x0200, 0x0207) AM_READWRITE8_LEGACY(pc_JOY_r,                    pc_JOY_w, 0xffff)
429429   AM_RANGE(0x02f8, 0x02ff) AM_DEVREADWRITE8("ins8250_1", ins8250_device, ins8250_r, ins8250_w, 0xffff)
430430   AM_RANGE(0x0378, 0x037f) AM_READWRITE8_LEGACY(pc_t1t_p37x_r,           pc_t1t_p37x_w, 0xffff)
r18237r18238
454454   AM_RANGE(0x0060, 0x0063) AM_DEVREADWRITE("ppi8255", i8255_device, read, write)
455455   AM_RANGE(0x0080, 0x0087) AM_READWRITE(pc_page_r,            pc_page_w)
456456   AM_RANGE(0x00a0, 0x00a0) AM_READWRITE(pcjr_nmi_enable_r, pc_nmi_enable_w )
457   AM_RANGE(0x00c0, 0x00c0) AM_DEVWRITE("sn76496", sn76496_new_device, write)
457   AM_RANGE(0x00c0, 0x00c0) AM_DEVWRITE("sn76496", sn76496_device, write)
458458   AM_RANGE(0x00f0, 0x00f7) AM_READWRITE_LEGACY(pc_fdc_r,               pcjr_fdc_w)
459459   AM_RANGE(0x0200, 0x0207) AM_READWRITE_LEGACY(pc_JOY_r,               pc_JOY_w)
460460   AM_RANGE(0x02f8, 0x02ff) AM_DEVREADWRITE("ins8250_1", ins8250_device, ins8250_r, ins8250_w)
r18237r18238
11141114   MCFG_SPEAKER_STANDARD_MONO("mono")
11151115   MCFG_SOUND_ADD(SPEAKER_TAG, SPEAKER_SOUND, 0)
11161116   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.80)
1117   MCFG_SOUND_ADD("sn76496", NCR7496_NEW, XTAL_14_31818MHz/4)
1117   MCFG_SOUND_ADD("sn76496", NCR7496, XTAL_14_31818MHz/4)
11181118   MCFG_SOUND_CONFIG(psg_intf)
11191119   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.80)
11201120
r18237r18238
11631163   MCFG_SPEAKER_STANDARD_MONO("mono")
11641164   MCFG_SOUND_ADD(SPEAKER_TAG, SPEAKER_SOUND, 0)
11651165   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.80)
1166   MCFG_SOUND_ADD("sn76496", NCR7496_NEW, XTAL_14_31818MHz/4)
1166   MCFG_SOUND_ADD("sn76496", NCR7496, XTAL_14_31818MHz/4)
11671167   MCFG_SOUND_CONFIG(psg_intf)
11681168   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.80)
11691169
r18237r18238
12121212   MCFG_SPEAKER_STANDARD_MONO("mono")
12131213   MCFG_SOUND_ADD(SPEAKER_TAG, SPEAKER_SOUND, 0)
12141214   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.80)
1215   MCFG_SOUND_ADD("sn76496", NCR7496_NEW, XTAL_14_31818MHz/4)
1215   MCFG_SOUND_ADD("sn76496", NCR7496, XTAL_14_31818MHz/4)
12161216   MCFG_SOUND_CONFIG(psg_intf)
12171217   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.80)
12181218
r18237r18238
12811281   MCFG_SPEAKER_STANDARD_MONO("mono")
12821282   MCFG_SOUND_ADD(SPEAKER_TAG, SPEAKER_SOUND, 0)
12831283   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.80)
1284   MCFG_SOUND_ADD("sn76496", SN76496_NEW, XTAL_14_31818MHz/4)
1284   MCFG_SOUND_ADD("sn76496", SN76496, XTAL_14_31818MHz/4)
12851285   MCFG_SOUND_CONFIG(psg_intf)
12861286   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.80)
12871287
trunk/src/mess/drivers/sg1000.c
r18237r18238
151151
152152static ADDRESS_MAP_START( sg1000_io_map, AS_IO, 8, sg1000_state )
153153   ADDRESS_MAP_GLOBAL_MASK(0xff)
154   AM_RANGE(0x40, 0x40) AM_MIRROR(0x3f) AM_DEVWRITE(SN76489AN_TAG, sn76489a_new_device, write)
154   AM_RANGE(0x40, 0x40) AM_MIRROR(0x3f) AM_DEVWRITE(SN76489AN_TAG, sn76489a_device, write)
155155   AM_RANGE(0x80, 0x80) AM_MIRROR(0x3e) AM_DEVREADWRITE(TMS9918A_TAG, tms9918a_device, vram_read, vram_write)
156156   AM_RANGE(0x81, 0x81) AM_MIRROR(0x3e) AM_DEVREADWRITE(TMS9918A_TAG, tms9918a_device, register_read, register_write)
157157   AM_RANGE(0xdc, 0xdc) AM_READ_PORT("PA7")
r18237r18238
176176
177177static ADDRESS_MAP_START( omv_io_map, AS_IO, 8, sg1000_state )
178178   ADDRESS_MAP_GLOBAL_MASK(0xff)
179   AM_RANGE(0x40, 0x40) AM_MIRROR(0x3f) AM_DEVWRITE(SN76489AN_TAG, sn76489a_new_device, write)
179   AM_RANGE(0x40, 0x40) AM_MIRROR(0x3f) AM_DEVWRITE(SN76489AN_TAG, sn76489a_device, write)
180180   AM_RANGE(0x80, 0x80) AM_MIRROR(0x3e) AM_DEVREADWRITE(TMS9918A_TAG, tms9918a_device, vram_read, vram_write)
181181   AM_RANGE(0x81, 0x81) AM_MIRROR(0x3e) AM_DEVREADWRITE(TMS9918A_TAG, tms9918a_device, register_read, register_write)
182182   AM_RANGE(0xc0, 0xc0) AM_MIRROR(0x38) AM_READ_PORT("C0")
r18237r18238
203203
204204static ADDRESS_MAP_START( sc3000_io_map, AS_IO, 8, sg1000_state )
205205   ADDRESS_MAP_GLOBAL_MASK(0xff)
206   AM_RANGE(0x7f, 0x7f) AM_DEVWRITE(SN76489AN_TAG, sn76489a_new_device, write)
206   AM_RANGE(0x7f, 0x7f) AM_DEVWRITE(SN76489AN_TAG, sn76489a_device, write)
207207   AM_RANGE(0xbe, 0xbe) AM_DEVREADWRITE(TMS9918A_TAG, tms9918a_device, vram_read, vram_write)
208208   AM_RANGE(0xbf, 0xbf) AM_DEVREADWRITE(TMS9918A_TAG, tms9918a_device, register_read, register_write)
209209   AM_RANGE(0xdc, 0xdf) AM_DEVREADWRITE(UPD9255_TAG, i8255_device, read, write)
r18237r18238
213213static ADDRESS_MAP_START( sc3000_io_map, AS_IO, 8, sg1000_state )
214214    ADDRESS_MAP_GLOBAL_MASK(0xff)
215215    AM_RANGE(0x00, 0x00) AM_MIRROR(0xdf) AM_DEVREADWRITE(UPD9255_TAG, i8255_device, read, write)
216    AM_RANGE(0x00, 0x00) AM_MIRROR(0x7f) AM_DEVWRITE(SN76489AN_TAG, sn76489a_new_device, write)
216    AM_RANGE(0x00, 0x00) AM_MIRROR(0x7f) AM_DEVWRITE(SN76489AN_TAG, sn76489a_device, write)
217217    AM_RANGE(0x00, 0x00) AM_MIRROR(0xae) AM_DEVREADWRITE(TMS9918A_TAG, tms9918a_device, vram_read, vram_write)
218218    AM_RANGE(0x01, 0x01) AM_MIRROR(0xae) AM_DEVREADWRITE(TMS9918A_TAG, tms9918a_device, register_read, register_write)
219219    AM_RANGE(0x60, 0x60) AM_MIRROR(0x9f) AM_READ(sc3000_r_r)
r18237r18238
235235
236236static ADDRESS_MAP_START( sf7000_io_map, AS_IO, 8, sf7000_state )
237237   ADDRESS_MAP_GLOBAL_MASK(0xff)
238   AM_RANGE(0x7f, 0x7f) AM_DEVWRITE(SN76489AN_TAG, sn76489a_new_device, write)
238   AM_RANGE(0x7f, 0x7f) AM_DEVWRITE(SN76489AN_TAG, sn76489a_device, write)
239239   AM_RANGE(0xbe, 0xbe) AM_DEVREADWRITE(TMS9918A_TAG, tms9918a_device, vram_read, vram_write)
240240   AM_RANGE(0xbf, 0xbf) AM_DEVREADWRITE(TMS9918A_TAG, tms9918a_device, register_read, register_write)
241241   AM_RANGE(0xdc, 0xdf) AM_DEVREADWRITE(UPD9255_0_TAG, i8255_device, read, write)
r18237r18238
11171117
11181118   /* sound hardware */
11191119   MCFG_SPEAKER_STANDARD_MONO("mono")
1120   MCFG_SOUND_ADD(SN76489AN_TAG, SN76489A_NEW, XTAL_10_738635MHz/3)
1120   MCFG_SOUND_ADD(SN76489AN_TAG, SN76489A, XTAL_10_738635MHz/3)
11211121   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00)
11221122   MCFG_SOUND_CONFIG(psg_intf)
11231123
r18237r18238
11711171
11721172   /* sound hardware */
11731173   MCFG_SPEAKER_STANDARD_MONO("mono")
1174   MCFG_SOUND_ADD(SN76489AN_TAG, SN76489A_NEW, XTAL_10_738635MHz/3)
1174   MCFG_SOUND_ADD(SN76489AN_TAG, SN76489A, XTAL_10_738635MHz/3)
11751175   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00)
11761176   MCFG_SOUND_CONFIG(psg_intf)
11771177
r18237r18238
12121212
12131213   /* sound hardware */
12141214   MCFG_SPEAKER_STANDARD_MONO("mono")
1215   MCFG_SOUND_ADD(SN76489AN_TAG, SN76489A_NEW, XTAL_10_738635MHz/3)
1215   MCFG_SOUND_ADD(SN76489AN_TAG, SN76489A, XTAL_10_738635MHz/3)
12161216   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00)
12171217   MCFG_SOUND_CONFIG(psg_intf)
12181218
trunk/src/mess/drivers/pasopia7.c
r18237r18238
5050   required_device<z80pio_device> m_pio;
5151   required_device<mc6845_device> m_crtc;
5252   required_device<device_t> m_fdc;
53   required_device<sn76489a_new_device> m_sn1;
54   required_device<sn76489a_new_device> m_sn2;
53   required_device<sn76489a_device> m_sn1;
54   required_device<sn76489a_device> m_sn2;
5555   DECLARE_READ8_MEMBER(vram_r);
5656   DECLARE_WRITE8_MEMBER(vram_w);
5757   DECLARE_WRITE8_MEMBER(pasopia7_memory_ctrl_w);
r18237r18238
10181018
10191019   /* Audio */
10201020   MCFG_SPEAKER_STANDARD_MONO("mono")
1021   MCFG_SOUND_ADD("sn1", SN76489A_NEW, 1996800) // unknown clock / divider
1021   MCFG_SOUND_ADD("sn1", SN76489A, 1996800) // unknown clock / divider
10221022   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50)
10231023   MCFG_SOUND_CONFIG(psg_intf)
1024   MCFG_SOUND_ADD("sn2", SN76489A_NEW, 1996800) // unknown clock / divider
1024   MCFG_SOUND_ADD("sn2", SN76489A, 1996800) // unknown clock / divider
10251025   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50)
10261026   MCFG_SOUND_CONFIG(psg_intf)
10271027
trunk/src/mess/drivers/tutor.c
r18237r18238
552552   AM_RANGE(0xe000, 0xe000) AM_DEVREADWRITE("tms9928a", tms9928a_device, vram_read, vram_write)   /*VDP data*/
553553   AM_RANGE(0xe002, 0xe002) AM_DEVREADWRITE("tms9928a", tms9928a_device, register_read, register_write)/*VDP status*/
554554   AM_RANGE(0xe100, 0xe1ff) AM_READWRITE(tutor_mapper_r, tutor_mapper_w)   /*cartridge mapper*/
555   AM_RANGE(0xe200, 0xe200) AM_DEVWRITE("sn76489a", sn76489a_new_device, write)   /*sound chip*/
555   AM_RANGE(0xe200, 0xe200) AM_DEVWRITE("sn76489a", sn76489a_device, write)   /*sound chip*/
556556   AM_RANGE(0xe800, 0xe8ff) AM_READWRITE(tutor_printer_r, tutor_printer_w)   /*printer*/
557557   AM_RANGE(0xee00, 0xeeff) AM_READNOP AM_WRITE( tutor_cassette_w)      /*cassette interface*/
558558
r18237r18238
566566   AM_RANGE(0xe000, 0xe000) AM_DEVREADWRITE("tms9928a", tms9928a_device, vram_read, vram_write)   /*VDP data*/
567567   AM_RANGE(0xe002, 0xe002) AM_DEVREADWRITE("tms9928a", tms9928a_device, register_read, register_write)/*VDP status*/
568568   AM_RANGE(0xe100, 0xe1ff) AM_READWRITE(tutor_mapper_r, tutor_mapper_w)   /*cartridge mapper*/
569   AM_RANGE(0xe200, 0xe200) AM_DEVWRITE("sn76489a", sn76489a_new_device, write)   /*sound chip*/
569   AM_RANGE(0xe200, 0xe200) AM_DEVWRITE("sn76489a", sn76489a_device, write)   /*sound chip*/
570570   AM_RANGE(0xe800, 0xe800) AM_READ_PORT("LINE0")
571571   AM_RANGE(0xea00, 0xea00) AM_READ_PORT("LINE1")
572572   AM_RANGE(0xec00, 0xec00) AM_READ_PORT("LINE2")
r18237r18238
768768
769769   /* sound */
770770   MCFG_SPEAKER_STANDARD_MONO("mono")
771   MCFG_SOUND_ADD("sn76489a", SN76489A_NEW, 3579545)   /* 3.579545 MHz */
771   MCFG_SOUND_ADD("sn76489a", SN76489A, 3579545)   /* 3.579545 MHz */
772772   MCFG_SOUND_CONFIG(psg_intf)
773773   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.75)
774774   MCFG_SOUND_WAVE_ADD(WAVE_TAG, CASSETTE_TAG)
trunk/src/mess/machine/wangpckb.c
r18237r18238
100100static ADDRESS_MAP_START( wangpc_keyboard_io, AS_IO, 8, wangpc_keyboard_device )
101101    //AM_RANGE(0x0000, 0xfeff) AM_READNOP
102102    AM_RANGE(0x47, 0x58) AM_MIRROR(0xff00) AM_READNOP
103    AM_RANGE(0x00, 0x00) AM_MIRROR(0xff00) AM_DEVWRITE(SN76496_TAG, sn76496_new_device, write)
103    AM_RANGE(0x00, 0x00) AM_MIRROR(0xff00) AM_DEVWRITE(SN76496_TAG, sn76496_device, write)
104104   AM_RANGE(MCS51_PORT_P1, MCS51_PORT_P1) AM_READWRITE(kb_p1_r, kb_p1_w)
105105   AM_RANGE(MCS51_PORT_P2, MCS51_PORT_P2) AM_WRITE(kb_p2_w)
106106   AM_RANGE(MCS51_PORT_P3, MCS51_PORT_P3) AM_WRITE(kb_p3_w)
r18237r18238
127127
128128   // sound hardware
129129   MCFG_SPEAKER_STANDARD_MONO("mono")
130   MCFG_SOUND_ADD(SN76496_TAG, SN76496_NEW, 2000000) // ???
130   MCFG_SOUND_ADD(SN76496_TAG, SN76496, 2000000) // ???
131131   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00)
132132    MCFG_SOUND_CONFIG(psg_intf)
133133MACHINE_CONFIG_END
trunk/src/mess/machine/ti99/videowrp.c
r18237r18238
206206
207207MACHINE_CONFIG_FRAGMENT( sn94624 )
208208   MCFG_SPEAKER_STANDARD_MONO("sound_out")
209   MCFG_SOUND_ADD(TISOUNDCHIP_TAG, SN94624_NEW, 3579545/8)   /* 3.579545 MHz */
209   MCFG_SOUND_ADD(TISOUNDCHIP_TAG, SN94624, 3579545/8)   /* 3.579545 MHz */
210210   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "sound_out", 0.75)
211211   MCFG_SOUND_CONFIG(sound_config)
212212MACHINE_CONFIG_END
213213
214214MACHINE_CONFIG_FRAGMENT( sn76496 )
215215   MCFG_SPEAKER_STANDARD_MONO("sound_out")
216   MCFG_SOUND_ADD(TISOUNDCHIP_TAG, SN76496_NEW, 3579545)   /* 3.579545 MHz */
216   MCFG_SOUND_ADD(TISOUNDCHIP_TAG, SN76496, 3579545)   /* 3.579545 MHz */
217217   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "sound_out", 0.75)
218218   MCFG_SOUND_CONFIG(sound_config)
219219MACHINE_CONFIG_END
trunk/src/mess/machine/a2alfam2.c
r18237r18238
3535
3636MACHINE_CONFIG_FRAGMENT( a2alfam2 )
3737    MCFG_SPEAKER_STANDARD_STEREO("alf_l", "alf_r")
38    MCFG_SOUND_ADD(SN1_TAG, SN76489_NEW, XTAL_3_579545MHz)
38    MCFG_SOUND_ADD(SN1_TAG, SN76489, XTAL_3_579545MHz)
3939   MCFG_SOUND_CONFIG(psg_intf)
4040    MCFG_SOUND_ROUTE(ALL_OUTPUTS, "alf_l", 0.50)
41    MCFG_SOUND_ADD(SN2_TAG, SN76489_NEW, XTAL_3_579545MHz)
41    MCFG_SOUND_ADD(SN2_TAG, SN76489, XTAL_3_579545MHz)
4242   MCFG_SOUND_CONFIG(psg_intf)
4343    MCFG_SOUND_ROUTE(ALL_OUTPUTS, "alf_l", 0.50)
4444    MCFG_SOUND_ROUTE(ALL_OUTPUTS, "alf_r", 0.50)
45    MCFG_SOUND_ADD(SN3_TAG, SN76489_NEW, XTAL_3_579545MHz)
45    MCFG_SOUND_ADD(SN3_TAG, SN76489, XTAL_3_579545MHz)
4646   MCFG_SOUND_CONFIG(psg_intf)
4747    MCFG_SOUND_ROUTE(ALL_OUTPUTS, "alf_r", 0.50)
4848MACHINE_CONFIG_END
trunk/src/mess/machine/a2alfam2.h
r18237r18238
2929    // optional information overrides
3030    virtual machine_config_constructor device_mconfig_additions() const;
3131
32    required_device<sn76489_new_device> m_sn1;
33    required_device<sn76489_new_device> m_sn2;
34    required_device<sn76489_new_device> m_sn3;
32    required_device<sn76489_device> m_sn1;
33    required_device<sn76489_device> m_sn2;
34    required_device<sn76489_device> m_sn3;
3535
3636protected:
3737    virtual void device_start();
trunk/src/mess/includes/bbc.h
r18237r18238
3535   { }
3636
3737   required_device<cpu_device> m_maincpu;
38   optional_device<sn76489_new_device> m_sn;
38   optional_device<sn76489_device> m_sn;
3939   required_device<saa5050_device> m_trom;
4040
4141   void check_interrupts();
trunk/src/mess/includes/mtx.h
r18237r18238
3131      m_sn(*this, SN76489A_TAG)
3232   { }
3333
34   required_device<sn76489a_new_device> m_sn;
34   required_device<sn76489a_device> m_sn;
3535
3636   /* keyboard state */
3737   UINT8 m_key_sense;

Previous 199869 Revisions Next


© 1997-2024 The MAME Team