trunk/src/mame/drivers/sbugger.c
r17464 | r17465 | |
116 | 116 | |
117 | 117 | static ADDRESS_MAP_START( sbugger_io_map, AS_IO, 8, sbugger_state ) |
118 | 118 | AM_RANGE(0xe0, 0xe7) AM_DEVREADWRITE("i8156", i8155_device, io_r, io_w) |
119 | | AM_RANGE(0xe8, 0xe8) AM_DEVWRITE_LEGACY("sn76489.1", sn76496_w) |
120 | | AM_RANGE(0xe9, 0xe9) AM_DEVWRITE_LEGACY("sn76489.2", sn76496_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) |
121 | 121 | ADDRESS_MAP_END |
122 | 122 | |
123 | 123 | |
r17464 | r17465 | |
223 | 223 | DEVCB_DRIVER_LINE_MEMBER(sbugger_state,sbugger_interrupt) |
224 | 224 | }; |
225 | 225 | |
| 226 | /************************************* |
| 227 | * |
| 228 | * Sound interface |
| 229 | * |
| 230 | *************************************/ |
| 231 | |
| 232 | |
| 233 | //------------------------------------------------- |
| 234 | // sn76496_config psg_intf |
| 235 | //------------------------------------------------- |
| 236 | |
| 237 | static const sn76496_config psg_intf = |
| 238 | { |
| 239 | DEVCB_NULL |
| 240 | }; |
| 241 | |
| 242 | |
226 | 243 | static MACHINE_CONFIG_START( sbugger, sbugger_state ) |
227 | 244 | |
228 | 245 | MCFG_CPU_ADD("maincpu", I8085A, 6000000) /* 3.00 MHz??? */ |
r17464 | r17465 | |
247 | 264 | /* sound hardware */ |
248 | 265 | MCFG_SPEAKER_STANDARD_MONO("mono") |
249 | 266 | |
250 | | MCFG_SOUND_ADD("sn76489.1", SN76489, 3000000) |
| 267 | MCFG_SOUND_ADD("sn76489.1", SN76489_NEW, 3000000) |
251 | 268 | MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) |
252 | | |
253 | | MCFG_SOUND_ADD("sn76489.2", SN76489, 3000000) |
| 269 | MCFG_SOUND_CONFIG(psg_intf) |
| 270 | |
| 271 | MCFG_SOUND_ADD("sn76489.2", SN76489_NEW, 3000000) |
254 | 272 | MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) |
255 | | |
| 273 | MCFG_SOUND_CONFIG(psg_intf) |
256 | 274 | MACHINE_CONFIG_END |
257 | 275 | |
258 | 276 | |
trunk/src/mame/drivers/zaxxon.c
r17464 | r17465 | |
498 | 498 | static ADDRESS_MAP_START( congo_sound_map, AS_PROGRAM, 8, zaxxon_state ) |
499 | 499 | AM_RANGE(0x0000, 0x1fff) AM_ROM |
500 | 500 | AM_RANGE(0x4000, 0x47ff) AM_MIRROR(0x1800) AM_RAM |
501 | | AM_RANGE(0x6000, 0x6000) AM_MIRROR(0x1fff) AM_DEVWRITE_LEGACY("sn1", sn76496_w) |
| 501 | AM_RANGE(0x6000, 0x6000) AM_MIRROR(0x1fff) AM_DEVWRITE("sn1", sn76496_new_device, write) |
502 | 502 | AM_RANGE(0x8000, 0x8003) AM_MIRROR(0x1ffc) AM_DEVREADWRITE("ppi8255", i8255_device, read, write) |
503 | | AM_RANGE(0xa000, 0xa000) AM_MIRROR(0x1fff) AM_DEVWRITE_LEGACY("sn2", sn76496_w) |
| 503 | AM_RANGE(0xa000, 0xa000) AM_MIRROR(0x1fff) AM_DEVWRITE("sn2", sn76496_new_device, write) |
504 | 504 | ADDRESS_MAP_END |
505 | 505 | |
506 | 506 | |
r17464 | r17465 | |
937 | 937 | |
938 | 938 | /************************************* |
939 | 939 | * |
| 940 | * Sound interface |
| 941 | * |
| 942 | *************************************/ |
| 943 | |
| 944 | |
| 945 | //------------------------------------------------- |
| 946 | // sn76496_config psg_intf |
| 947 | //------------------------------------------------- |
| 948 | |
| 949 | static const sn76496_config psg_intf = |
| 950 | { |
| 951 | DEVCB_NULL |
| 952 | }; |
| 953 | |
| 954 | |
| 955 | /************************************* |
| 956 | * |
940 | 957 | * Machine driver |
941 | 958 | * |
942 | 959 | *************************************/ |
r17464 | r17465 | |
1024 | 1041 | /* sound hardware */ |
1025 | 1042 | MCFG_SPEAKER_STANDARD_MONO("mono") |
1026 | 1043 | |
1027 | | MCFG_SOUND_ADD("sn1", SN76496, SOUND_CLOCK) |
| 1044 | MCFG_SOUND_ADD("sn1", SN76496_NEW, SOUND_CLOCK) |
1028 | 1045 | MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) |
1029 | | |
1030 | | MCFG_SOUND_ADD("sn2", SN76496, SOUND_CLOCK/4) |
| 1046 | MCFG_SOUND_CONFIG(psg_intf) |
| 1047 | |
| 1048 | MCFG_SOUND_ADD("sn2", SN76496_NEW, SOUND_CLOCK/4) |
1031 | 1049 | MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) |
| 1050 | MCFG_SOUND_CONFIG(psg_intf) |
1032 | 1051 | |
1033 | 1052 | MCFG_FRAGMENT_ADD(congo_samples) |
1034 | 1053 | MACHINE_CONFIG_END |
trunk/src/mame/drivers/mrjong.c
r17464 | r17465 | |
78 | 78 | static ADDRESS_MAP_START( mrjong_io_map, AS_IO, 8, mrjong_state ) |
79 | 79 | ADDRESS_MAP_GLOBAL_MASK(0xff) |
80 | 80 | AM_RANGE(0x00, 0x00) AM_READ_PORT("P2") AM_WRITE(mrjong_flipscreen_w) |
81 | | AM_RANGE(0x01, 0x01) AM_READ_PORT("P1") AM_DEVWRITE_LEGACY("sn1", sn76496_w) |
82 | | AM_RANGE(0x02, 0x02) AM_READ_PORT("DSW") AM_DEVWRITE_LEGACY("sn2", sn76496_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) |
83 | 83 | AM_RANGE(0x03, 0x03) AM_READ(io_0x03_r) // Unknown |
84 | 84 | ADDRESS_MAP_END |
85 | 85 | |
r17464 | r17465 | |
174 | 174 | |
175 | 175 | /************************************* |
176 | 176 | * |
| 177 | * Sound interface |
| 178 | * |
| 179 | *************************************/ |
| 180 | |
| 181 | |
| 182 | //------------------------------------------------- |
| 183 | // sn76496_config psg_intf |
| 184 | //------------------------------------------------- |
| 185 | |
| 186 | static const sn76496_config psg_intf = |
| 187 | { |
| 188 | DEVCB_NULL |
| 189 | }; |
| 190 | |
| 191 | |
| 192 | /************************************* |
| 193 | * |
177 | 194 | * Machine driver |
178 | 195 | * |
179 | 196 | *************************************/ |
r17464 | r17465 | |
203 | 220 | /* sound hardware */ |
204 | 221 | MCFG_SPEAKER_STANDARD_MONO("mono") |
205 | 222 | |
206 | | MCFG_SOUND_ADD("sn1", SN76489, 15468000/6) |
| 223 | MCFG_SOUND_ADD("sn1", SN76489_NEW, 15468000/6) |
207 | 224 | MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) |
208 | | |
209 | | MCFG_SOUND_ADD("sn2", SN76489, 15468000/6) |
| 225 | MCFG_SOUND_CONFIG(psg_intf) |
| 226 | |
| 227 | MCFG_SOUND_ADD("sn2", SN76489_NEW, 15468000/6) |
210 | 228 | MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) |
| 229 | MCFG_SOUND_CONFIG(psg_intf) |
211 | 230 | MACHINE_CONFIG_END |
212 | 231 | |
213 | 232 | |
trunk/src/mame/drivers/spaceg.c
r17464 | r17465 | |
401 | 401 | |
402 | 402 | /************************************* |
403 | 403 | * |
| 404 | * Sound interface |
| 405 | * |
| 406 | *************************************/ |
| 407 | |
| 408 | |
| 409 | //------------------------------------------------- |
| 410 | // sn76496_config psg_intf |
| 411 | //------------------------------------------------- |
| 412 | |
| 413 | //static const sn76496_config psg_intf = |
| 414 | //{ |
| 415 | // DEVCB_NULL |
| 416 | //}; |
| 417 | |
| 418 | |
| 419 | /************************************* |
| 420 | * |
404 | 421 | * Machine config |
405 | 422 | * |
406 | 423 | *************************************/ |
r17464 | r17465 | |
426 | 443 | /* sound hardware */ |
427 | 444 | // MCFG_SPEAKER_STANDARD_MONO("mono") |
428 | 445 | |
429 | | // MCFG_SOUND_ADD("sn1", SN76496, 15468480/4) |
| 446 | // MCFG_SOUND_ADD("sn1", SN76496_NEW, 15468480/4) |
430 | 447 | // MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) |
| 448 | // MCFG_SOUND_CONFIG(psg_intf) |
431 | 449 | |
432 | | // MCFG_SOUND_ADD("sn2", SN76496, 15468480/4) |
| 450 | // MCFG_SOUND_ADD("sn2", SN76496_NEW, 15468480/4) |
433 | 451 | // MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) |
| 452 | // MCFG_SOUND_CONFIG(psg_intf) |
434 | 453 | |
435 | | // MCFG_SOUND_ADD("sn3", SN76496, 15468480/4) |
| 454 | // MCFG_SOUND_ADD("sn3", SN76496_NEW, 15468480/4) |
436 | 455 | // MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) |
| 456 | // MCFG_SOUND_CONFIG(psg_intf) |
437 | 457 | |
438 | 458 | // MCFG_DAC_ADD("dac") |
439 | 459 | // MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) |
trunk/src/mame/drivers/senjyo.c
r17464 | r17465 | |
162 | 162 | static ADDRESS_MAP_START( senjyo_sound_map, AS_PROGRAM, 8, senjyo_state ) |
163 | 163 | AM_RANGE(0x0000, 0x3fff) AM_ROM |
164 | 164 | AM_RANGE(0x4000, 0x43ff) AM_RAM |
165 | | AM_RANGE(0x8000, 0x8000) AM_DEVWRITE_LEGACY("sn1", sn76496_w) |
166 | | AM_RANGE(0x9000, 0x9000) AM_DEVWRITE_LEGACY("sn2", sn76496_w) |
167 | | AM_RANGE(0xa000, 0xa000) AM_DEVWRITE_LEGACY("sn3", sn76496_w) |
| 165 | AM_RANGE(0x8000, 0x8000) AM_DEVWRITE("sn1", sn76496_new_device, write) |
| 166 | AM_RANGE(0x9000, 0x9000) AM_DEVWRITE("sn2", sn76496_new_device, write) |
| 167 | AM_RANGE(0xa000, 0xa000) AM_DEVWRITE("sn3", sn76496_new_device, write) |
168 | 168 | AM_RANGE(0xd000, 0xd000) AM_WRITE(senjyo_volume_w) |
169 | 169 | #if 0 |
170 | 170 | AM_RANGE(0xe000, 0xe000) AM_WRITE_LEGACY(unknown) |
r17464 | r17465 | |
230 | 230 | static ADDRESS_MAP_START( starforb_sound_map, AS_PROGRAM, 8, senjyo_state ) |
231 | 231 | AM_RANGE(0x0000, 0x3fff) AM_ROM |
232 | 232 | AM_RANGE(0x4000, 0x43ff) AM_RAM |
233 | | AM_RANGE(0x8000, 0x8000) AM_DEVWRITE_LEGACY("sn1", sn76496_w) |
234 | | AM_RANGE(0x9000, 0x9000) AM_DEVWRITE_LEGACY("sn2", sn76496_w) |
235 | | AM_RANGE(0xa000, 0xa000) AM_DEVWRITE_LEGACY("sn3", sn76496_w) |
| 233 | AM_RANGE(0x8000, 0x8000) AM_DEVWRITE("sn1", sn76496_new_device, write) |
| 234 | AM_RANGE(0x9000, 0x9000) AM_DEVWRITE("sn2", sn76496_new_device, write) |
| 235 | AM_RANGE(0xa000, 0xa000) AM_DEVWRITE("sn3", sn76496_new_device, write) |
236 | 236 | AM_RANGE(0xd000, 0xd000) AM_WRITE(senjyo_volume_w) |
237 | 237 | #if 0 |
238 | 238 | AM_RANGE(0xe000, 0xe000) AM_WRITE_LEGACY(unknown) |
r17464 | r17465 | |
551 | 551 | GFXDECODE_END |
552 | 552 | |
553 | 553 | |
| 554 | /************************************* |
| 555 | * |
| 556 | * Sound interface |
| 557 | * |
| 558 | *************************************/ |
| 559 | |
| 560 | |
| 561 | //------------------------------------------------- |
| 562 | // sn76496_config psg_intf |
| 563 | //------------------------------------------------- |
554 | 564 | |
| 565 | static const sn76496_config psg_intf = |
| 566 | { |
| 567 | DEVCB_NULL |
| 568 | }; |
| 569 | |
| 570 | |
555 | 571 | static MACHINE_CONFIG_START( senjyo, senjyo_state ) |
556 | 572 | |
557 | 573 | /* basic machine hardware */ |
r17464 | r17465 | |
585 | 601 | /* sound hardware */ |
586 | 602 | MCFG_SPEAKER_STANDARD_MONO("mono") |
587 | 603 | |
588 | | MCFG_SOUND_ADD("sn1", SN76496, 2000000) |
| 604 | MCFG_SOUND_ADD("sn1", SN76496_NEW, 2000000) |
589 | 605 | MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) |
| 606 | MCFG_SOUND_CONFIG(psg_intf) |
590 | 607 | |
591 | | MCFG_SOUND_ADD("sn2", SN76496, 2000000) |
| 608 | MCFG_SOUND_ADD("sn2", SN76496_NEW, 2000000) |
592 | 609 | MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) |
| 610 | MCFG_SOUND_CONFIG(psg_intf) |
593 | 611 | |
594 | | MCFG_SOUND_ADD("sn3", SN76496, 2000000) |
| 612 | MCFG_SOUND_ADD("sn3", SN76496_NEW, 2000000) |
595 | 613 | MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) |
| 614 | MCFG_SOUND_CONFIG(psg_intf) |
596 | 615 | |
597 | 616 | MCFG_DAC_ADD("dac") |
598 | 617 | MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.05) |
trunk/src/mame/drivers/finalizr.c
r17464 | r17465 | |
106 | 106 | AM_RANGE(0x0813, 0x0813) AM_READ_PORT("DSW1") |
107 | 107 | AM_RANGE(0x0818, 0x0818) AM_WRITE(watchdog_reset_w) |
108 | 108 | AM_RANGE(0x0819, 0x0819) AM_WRITE(finalizr_coin_w) |
109 | | AM_RANGE(0x081a, 0x081a) AM_DEVWRITE_LEGACY("snsnd", sn76496_w) /* This address triggers the SN chip to read the data port. */ |
| 109 | AM_RANGE(0x081a, 0x081a) AM_DEVWRITE("snsnd", sn76489a_new_device, write) /* This address triggers the SN chip to read the data port. */ |
110 | 110 | AM_RANGE(0x081b, 0x081b) AM_WRITENOP /* Loads the snd command into the snd latch */ |
111 | 111 | AM_RANGE(0x081c, 0x081c) AM_WRITE(finalizr_i8039_irq_w) /* custom sound chip */ |
112 | 112 | AM_RANGE(0x081d, 0x081d) AM_WRITE(soundlatch_byte_w) /* custom sound chip */ |
r17464 | r17465 | |
235 | 235 | GFXDECODE_END |
236 | 236 | |
237 | 237 | |
| 238 | /************************************* |
| 239 | * |
| 240 | * Sound interface |
| 241 | * |
| 242 | *************************************/ |
| 243 | |
| 244 | |
| 245 | //------------------------------------------------- |
| 246 | // sn76496_config psg_intf |
| 247 | //------------------------------------------------- |
238 | 248 | |
| 249 | static const sn76496_config psg_intf = |
| 250 | { |
| 251 | DEVCB_NULL |
| 252 | }; |
| 253 | |
| 254 | |
239 | 255 | static MACHINE_START( finalizr ) |
240 | 256 | { |
241 | 257 | finalizr_state *state = machine.driver_data<finalizr_state>(); |
r17464 | r17465 | |
291 | 307 | /* sound hardware */ |
292 | 308 | MCFG_SPEAKER_STANDARD_MONO("mono") |
293 | 309 | |
294 | | MCFG_SOUND_ADD("snsnd", SN76489A, XTAL_18_432MHz/12) |
| 310 | MCFG_SOUND_ADD("snsnd", SN76489A_NEW, XTAL_18_432MHz/12) |
295 | 311 | MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.75) |
| 312 | MCFG_SOUND_CONFIG(psg_intf) |
296 | 313 | |
297 | 314 | MCFG_DAC_ADD("dac") |
298 | 315 | MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.65) |
trunk/src/mame/drivers/galaxold.c
r17464 | r17465 | |
886 | 886 | ADDRESS_MAP_END |
887 | 887 | |
888 | 888 | static ADDRESS_MAP_START( racknrol_io, AS_IO, 8, galaxold_state ) |
889 | | AM_RANGE(0x1d, 0x1d) AM_DEVWRITE_LEGACY("sn1", sn76496_w) |
890 | | AM_RANGE(0x1e, 0x1e) AM_DEVWRITE_LEGACY("sn2", sn76496_w) |
891 | | AM_RANGE(0x1f, 0x1f) AM_DEVWRITE_LEGACY("sn3", sn76496_w) |
| 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) |
892 | 892 | AM_RANGE(0x20, 0x3f) AM_WRITE(racknrol_tiles_bank_w) AM_SHARE("racknrol_tbank") |
893 | 893 | AM_RANGE(S2650_SENSE_PORT, S2650_SENSE_PORT) AM_READ_PORT("SENSE") |
894 | 894 | ADDRESS_MAP_END |
r17464 | r17465 | |
910 | 910 | static ADDRESS_MAP_START( hexpoola_io, AS_IO, 8, galaxold_state ) |
911 | 911 | AM_RANGE(0x00, 0x00) AM_READNOP |
912 | 912 | 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_LEGACY("snsnd", sn76496_w) |
| 913 | AM_RANGE(S2650_DATA_PORT, S2650_DATA_PORT) AM_READ(hexpoola_data_port_r) AM_DEVWRITE("snsnd", sn76496_new_device, write) |
914 | 914 | AM_RANGE(S2650_SENSE_PORT, S2650_SENSE_PORT) AM_READ_PORT("SENSE") |
915 | 915 | ADDRESS_MAP_END |
916 | 916 | |
r17464 | r17465 | |
938 | 938 | static ADDRESS_MAP_START( bullsdrtg_io_map, AS_IO, 8, galaxold_state ) |
939 | 939 | AM_RANGE(0x00, 0x00) AM_READNOP |
940 | 940 | 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_LEGACY("snsnd", sn76496_w) |
| 941 | AM_RANGE(S2650_DATA_PORT, S2650_DATA_PORT) AM_READ(bullsdrtg_data_port_r) AM_DEVWRITE("snsnd", sn76496_new_device, write) |
942 | 942 | AM_RANGE(S2650_SENSE_PORT, S2650_SENSE_PORT) AM_READ_PORT("SENSE") |
943 | 943 | ADDRESS_MAP_END |
944 | 944 | |
r17464 | r17465 | |
2139 | 2139 | GFXDECODE_ENTRY( "gfx1", 0x4000, _4in1_spritelayout, 0, 8 ) |
2140 | 2140 | GFXDECODE_END |
2141 | 2141 | |
| 2142 | |
| 2143 | /************************************* |
| 2144 | * |
| 2145 | * Sound interface |
| 2146 | * |
| 2147 | *************************************/ |
| 2148 | |
| 2149 | |
| 2150 | //------------------------------------------------- |
| 2151 | // sn76496_config psg_intf |
| 2152 | //------------------------------------------------- |
| 2153 | |
| 2154 | static const sn76496_config psg_intf = |
| 2155 | { |
| 2156 | DEVCB_NULL |
| 2157 | }; |
| 2158 | |
| 2159 | |
2142 | 2160 | static const ay8910_interface bongo_ay8910_interface = |
2143 | 2161 | { |
2144 | 2162 | AY8910_LEGACY_OUTPUT, |
r17464 | r17465 | |
2429 | 2447 | |
2430 | 2448 | /* sound hardware */ |
2431 | 2449 | MCFG_SPEAKER_STANDARD_MONO("mono") |
2432 | | MCFG_SOUND_ADD("sn1", SN76496, PIXEL_CLOCK/2) |
| 2450 | MCFG_SOUND_ADD("sn1", SN76496_NEW, PIXEL_CLOCK/2) |
2433 | 2451 | MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) |
| 2452 | MCFG_SOUND_CONFIG(psg_intf) |
2434 | 2453 | |
2435 | | MCFG_SOUND_ADD("sn2", SN76496, PIXEL_CLOCK/2) |
| 2454 | MCFG_SOUND_ADD("sn2", SN76496_NEW, PIXEL_CLOCK/2) |
2436 | 2455 | MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) |
| 2456 | MCFG_SOUND_CONFIG(psg_intf) |
2437 | 2457 | |
2438 | | MCFG_SOUND_ADD("sn3", SN76496, PIXEL_CLOCK/2) |
| 2458 | MCFG_SOUND_ADD("sn3", SN76496_NEW, PIXEL_CLOCK/2) |
2439 | 2459 | MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) |
| 2460 | MCFG_SOUND_CONFIG(psg_intf) |
2440 | 2461 | MACHINE_CONFIG_END |
2441 | 2462 | |
2442 | 2463 | static MACHINE_CONFIG_DERIVED( ckongg, galaxian ) |
r17464 | r17465 | |
2484 | 2505 | |
2485 | 2506 | /* sound hardware */ |
2486 | 2507 | MCFG_SPEAKER_STANDARD_MONO("mono") |
2487 | | MCFG_SOUND_ADD("snsnd", SN76496, PIXEL_CLOCK/2) |
| 2508 | MCFG_SOUND_ADD("snsnd", SN76496_NEW, PIXEL_CLOCK/2) |
2488 | 2509 | MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) |
| 2510 | MCFG_SOUND_CONFIG(psg_intf) |
2489 | 2511 | MACHINE_CONFIG_END |
2490 | 2512 | |
2491 | 2513 | static MACHINE_CONFIG_DERIVED( bullsdrtg, hexpoola ) |
trunk/src/mame/drivers/sg1000a.c
r17464 | r17465 | |
146 | 146 | |
147 | 147 | static ADDRESS_MAP_START( io_map, AS_IO, 8, sg1000a_state ) |
148 | 148 | ADDRESS_MAP_GLOBAL_MASK(0xff) |
149 | | AM_RANGE(0x7f, 0x7f) AM_DEVWRITE_LEGACY("snsnd", sn76496_w) |
| 149 | AM_RANGE(0x7f, 0x7f) AM_DEVWRITE("snsnd", sn76489_new_device, write) |
150 | 150 | AM_RANGE(0xbe, 0xbe) AM_DEVREADWRITE("tms9928a", tms9928a_device, vram_read, vram_write) |
151 | 151 | AM_RANGE(0xbf, 0xbf) AM_DEVREADWRITE("tms9928a", tms9928a_device, register_read, register_write) |
152 | 152 | AM_RANGE(0xdc, 0xdf) AM_DEVREADWRITE("ppi8255", i8255_device, read, write) |
r17464 | r17465 | |
265 | 265 | DEVCB_DRIVER_MEMBER(sg1000a_state,sg1000a_coin_counter_w) |
266 | 266 | }; |
267 | 267 | |
| 268 | |
268 | 269 | /************************************* |
269 | 270 | * |
| 271 | * Sound interface |
| 272 | * |
| 273 | *************************************/ |
| 274 | |
| 275 | |
| 276 | //------------------------------------------------- |
| 277 | // sn76496_config psg_intf |
| 278 | //------------------------------------------------- |
| 279 | |
| 280 | static const sn76496_config psg_intf = |
| 281 | { |
| 282 | DEVCB_NULL |
| 283 | }; |
| 284 | |
| 285 | |
| 286 | /************************************* |
| 287 | * |
270 | 288 | * Machine drivers |
271 | 289 | * |
272 | 290 | *************************************/ |
r17464 | r17465 | |
287 | 305 | /* sound hardware */ |
288 | 306 | MCFG_SPEAKER_STANDARD_MONO("mono") |
289 | 307 | |
290 | | MCFG_SOUND_ADD("snsnd", SN76489, XTAL_3_579545MHz) |
| 308 | MCFG_SOUND_ADD("snsnd", SN76489_NEW, XTAL_3_579545MHz) |
291 | 309 | MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) |
| 310 | MCFG_SOUND_CONFIG(psg_intf) |
292 | 311 | MACHINE_CONFIG_END |
293 | 312 | |
294 | 313 | /************************************* |
trunk/src/mame/drivers/pingpong.c
r17464 | r17465 | |
98 | 98 | AM_RANGE(0xa980, 0xa980) AM_READ_PORT("DSW2") |
99 | 99 | AM_RANGE(0xa000, 0xa000) AM_WRITE(coin_w) /* coin counters + irq enables */ |
100 | 100 | AM_RANGE(0xa200, 0xa200) AM_WRITENOP /* SN76496 data latch */ |
101 | | AM_RANGE(0xa400, 0xa400) AM_DEVWRITE_LEGACY("snsnd", sn76496_w) /* trigger read */ |
| 101 | AM_RANGE(0xa400, 0xa400) AM_DEVWRITE("snsnd", sn76496_new_device, write) /* trigger read */ |
102 | 102 | AM_RANGE(0xa600, 0xa600) AM_WRITE(watchdog_reset_w) |
103 | 103 | ADDRESS_MAP_END |
104 | 104 | |
r17464 | r17465 | |
119 | 119 | AM_RANGE(0xa100, 0xa100) AM_READ_PORT("IN2") |
120 | 120 | AM_RANGE(0xa180, 0xa180) AM_READ_PORT("IN3") |
121 | 121 | AM_RANGE(0xa200, 0xa200) AM_WRITENOP /* SN76496 data latch */ |
122 | | AM_RANGE(0xa400, 0xa400) AM_DEVWRITE_LEGACY("snsnd", sn76496_w) /* trigger read */ |
| 122 | AM_RANGE(0xa400, 0xa400) AM_DEVWRITE("snsnd", sn76496_new_device, write) /* trigger read */ |
123 | 123 | AM_RANGE(0xa600, 0xa600) AM_WRITE(watchdog_reset_w) |
124 | 124 | ADDRESS_MAP_END |
125 | 125 | |
r17464 | r17465 | |
442 | 442 | GFXDECODE_END |
443 | 443 | |
444 | 444 | |
| 445 | /************************************* |
| 446 | * |
| 447 | * Sound interface |
| 448 | * |
| 449 | *************************************/ |
| 450 | |
| 451 | |
| 452 | //------------------------------------------------- |
| 453 | // sn76496_config psg_intf |
| 454 | //------------------------------------------------- |
445 | 455 | |
| 456 | static const sn76496_config psg_intf = |
| 457 | { |
| 458 | DEVCB_NULL |
| 459 | }; |
| 460 | |
| 461 | |
446 | 462 | static MACHINE_CONFIG_START( pingpong, pingpong_state ) |
447 | 463 | |
448 | 464 | /* basic machine hardware */ |
r17464 | r17465 | |
467 | 483 | /* sound hardware */ |
468 | 484 | MCFG_SPEAKER_STANDARD_MONO("mono") |
469 | 485 | |
470 | | MCFG_SOUND_ADD("snsnd", SN76496, 18432000/8) |
| 486 | MCFG_SOUND_ADD("snsnd", SN76496_NEW, 18432000/8) |
471 | 487 | MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) |
| 488 | MCFG_SOUND_CONFIG(psg_intf) |
472 | 489 | MACHINE_CONFIG_END |
473 | 490 | |
474 | 491 | /* too fast! */ |
trunk/src/mame/drivers/retofinv.c
r17464 | r17465 | |
137 | 137 | AM_RANGE(0x2000, 0x27ff) AM_RAM |
138 | 138 | AM_RANGE(0x4000, 0x4000) AM_READ(soundlatch_byte_r) |
139 | 139 | AM_RANGE(0x6000, 0x6000) AM_WRITE(cpu2_m6000_w) |
140 | | AM_RANGE(0x8000, 0x8000) AM_DEVWRITE_LEGACY("sn1", sn76496_w) |
141 | | AM_RANGE(0xa000, 0xa000) AM_DEVWRITE_LEGACY("sn2", sn76496_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) |
142 | 142 | AM_RANGE(0xe000, 0xffff) AM_ROM /* space for diagnostic ROM */ |
143 | 143 | ADDRESS_MAP_END |
144 | 144 | |
r17464 | r17465 | |
344 | 344 | device_set_input_line(device, 0, ASSERT_LINE); |
345 | 345 | } |
346 | 346 | |
| 347 | |
| 348 | /************************************* |
| 349 | * |
| 350 | * Sound interface |
| 351 | * |
| 352 | *************************************/ |
| 353 | |
| 354 | |
| 355 | //------------------------------------------------- |
| 356 | // sn76496_config psg_intf |
| 357 | //------------------------------------------------- |
| 358 | |
| 359 | static const sn76496_config psg_intf = |
| 360 | { |
| 361 | DEVCB_NULL |
| 362 | }; |
| 363 | |
| 364 | |
347 | 365 | static MACHINE_CONFIG_START( retofinv, retofinv_state ) |
348 | 366 | |
349 | 367 | /* basic machine hardware */ |
r17464 | r17465 | |
381 | 399 | /* sound hardware */ |
382 | 400 | MCFG_SPEAKER_STANDARD_MONO("mono") |
383 | 401 | |
384 | | MCFG_SOUND_ADD("sn1", SN76496, 18432000/6) |
| 402 | MCFG_SOUND_ADD("sn1", SN76496_NEW, 18432000/6) |
385 | 403 | MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.80) |
386 | | |
387 | | MCFG_SOUND_ADD("sn2", SN76496, 18432000/6) |
| 404 | MCFG_SOUND_CONFIG(psg_intf) |
| 405 | |
| 406 | MCFG_SOUND_ADD("sn2", SN76496_NEW, 18432000/6) |
388 | 407 | MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.80) |
| 408 | MCFG_SOUND_CONFIG(psg_intf) |
389 | 409 | MACHINE_CONFIG_END |
390 | 410 | |
391 | 411 | |
trunk/src/mame/drivers/jpmmps.c
r17464 | r17465 | |
146 | 146 | #define SOUND_CLOCK 2000000 |
147 | 147 | #define DUART_CLOCK 2000000 |
148 | 148 | |
| 149 | |
| 150 | /************************************* |
| 151 | * |
| 152 | * Sound interface |
| 153 | * |
| 154 | *************************************/ |
| 155 | |
| 156 | |
| 157 | //------------------------------------------------- |
| 158 | // sn76496_config psg_intf |
| 159 | //------------------------------------------------- |
| 160 | |
| 161 | static const sn76496_config psg_intf = |
| 162 | { |
| 163 | DEVCB_NULL |
| 164 | }; |
| 165 | |
| 166 | |
149 | 167 | static MACHINE_CONFIG_START( jpmmps, jpmmps_state ) |
150 | 168 | |
151 | 169 | /* basic machine hardware */ |
r17464 | r17465 | |
164 | 182 | |
165 | 183 | MCFG_SPEAKER_STANDARD_MONO("mono") |
166 | 184 | |
167 | | MCFG_SOUND_ADD("sn", SN76489, SOUND_CLOCK) |
| 185 | MCFG_SOUND_ADD("sn", SN76489_NEW, SOUND_CLOCK) |
168 | 186 | MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00) |
| 187 | MCFG_SOUND_CONFIG(psg_intf) |
169 | 188 | |
170 | 189 | MACHINE_CONFIG_END |
171 | 190 | |
trunk/src/mame/drivers/sprcros2.c
r17464 | r17465 | |
112 | 112 | |
113 | 113 | static ADDRESS_MAP_START( sprcros2_master_io_map, AS_IO, 8, sprcros2_state ) |
114 | 114 | ADDRESS_MAP_GLOBAL_MASK(0xff) |
115 | | AM_RANGE(0x00, 0x00) AM_READ_PORT("P1") AM_DEVWRITE_LEGACY("sn1", sn76496_w) |
116 | | AM_RANGE(0x01, 0x01) AM_READ_PORT("P2") AM_DEVWRITE_LEGACY("sn2", sn76496_w) |
117 | | AM_RANGE(0x02, 0x02) AM_READ_PORT("EXTRA") AM_DEVWRITE_LEGACY("sn3", sn76496_w) |
| 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) |
118 | 118 | AM_RANGE(0x04, 0x04) AM_READ_PORT("DSW1") |
119 | 119 | AM_RANGE(0x05, 0x05) AM_READ_PORT("DSW2") |
120 | 120 | AM_RANGE(0x07, 0x07) AM_WRITE(sprcros2_m_port7_w) |
r17464 | r17465 | |
228 | 228 | GFXDECODE_ENTRY( "gfx3", 0, sprcros2_fglayout, 512, 64 ) |
229 | 229 | GFXDECODE_END |
230 | 230 | |
| 231 | /************************************* |
| 232 | * |
| 233 | * Sound interface |
| 234 | * |
| 235 | *************************************/ |
| 236 | |
| 237 | |
| 238 | //------------------------------------------------- |
| 239 | // sn76496_config psg_intf |
| 240 | //------------------------------------------------- |
| 241 | |
| 242 | static const sn76496_config psg_intf = |
| 243 | { |
| 244 | DEVCB_NULL |
| 245 | }; |
| 246 | |
| 247 | |
231 | 248 | static TIMER_DEVICE_CALLBACK( sprcros2_m_interrupt ) |
232 | 249 | { |
233 | 250 | sprcros2_state *state = timer.machine().driver_data<sprcros2_state>(); |
r17464 | r17465 | |
293 | 310 | /* sound hardware */ |
294 | 311 | MCFG_SPEAKER_STANDARD_MONO("mono") |
295 | 312 | |
296 | | MCFG_SOUND_ADD("sn1", SN76489, 10000000/4) |
| 313 | MCFG_SOUND_ADD("sn1", SN76489_NEW, 10000000/4) |
297 | 314 | MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) |
| 315 | MCFG_SOUND_CONFIG(psg_intf) |
298 | 316 | |
299 | | MCFG_SOUND_ADD("sn2", SN76489, 10000000/4) |
| 317 | MCFG_SOUND_ADD("sn2", SN76489_NEW, 10000000/4) |
300 | 318 | MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) |
| 319 | MCFG_SOUND_CONFIG(psg_intf) |
301 | 320 | |
302 | | MCFG_SOUND_ADD("sn3", SN76489, 10000000/4) |
| 321 | MCFG_SOUND_ADD("sn3", SN76489_NEW, 10000000/4) |
303 | 322 | MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) |
| 323 | MCFG_SOUND_CONFIG(psg_intf) |
304 | 324 | MACHINE_CONFIG_END |
305 | 325 | |
306 | 326 | ROM_START( sprcros2 ) |