trunk/src/mame/drivers/tp84.c
r17421 | r17422 | |
193 | 193 | AM_RANGE(0x8000, 0x8000) AM_READ(tp84_sh_timer_r) |
194 | 194 | AM_RANGE(0xa000, 0xa1ff) AM_WRITE(tp84_filter_w) |
195 | 195 | AM_RANGE(0xc000, 0xc000) AM_WRITENOP |
196 | | AM_RANGE(0xc001, 0xc001) AM_DEVWRITE_LEGACY("sn1", sn76496_w) |
197 | | AM_RANGE(0xc003, 0xc003) AM_DEVWRITE_LEGACY("sn2", sn76496_w) |
198 | | AM_RANGE(0xc004, 0xc004) AM_DEVWRITE_LEGACY("sn3", sn76496_w) |
| 196 | AM_RANGE(0xc001, 0xc001) AM_DEVWRITE("y2404_1", y2404_new_device, write) |
| 197 | AM_RANGE(0xc003, 0xc003) AM_DEVWRITE("y2404_2", y2404_new_device, write) |
| 198 | AM_RANGE(0xc004, 0xc004) AM_DEVWRITE("y2404_3", y2404_new_device, write) |
199 | 199 | ADDRESS_MAP_END |
200 | 200 | |
201 | 201 | |
r17421 | r17422 | |
288 | 288 | } |
289 | 289 | |
290 | 290 | |
| 291 | /************************************* |
| 292 | * |
| 293 | * Sound interface |
| 294 | * |
| 295 | *************************************/ |
| 296 | |
| 297 | |
| 298 | //------------------------------------------------- |
| 299 | // sn76496_config psg_intf |
| 300 | //------------------------------------------------- |
| 301 | |
| 302 | static const sn76496_config psg_intf = |
| 303 | { |
| 304 | DEVCB_NULL |
| 305 | }; |
| 306 | |
| 307 | |
291 | 308 | static MACHINE_CONFIG_START( tp84, tp84_state ) |
292 | 309 | |
293 | 310 | /* basic machine hardware */ |
r17421 | r17422 | |
324 | 341 | /* audio hardware */ |
325 | 342 | MCFG_SPEAKER_STANDARD_MONO("mono") |
326 | 343 | |
327 | | MCFG_SOUND_ADD("sn1", Y2404, XTAL_14_31818MHz/8) /* verified on pcb */ |
| 344 | MCFG_SOUND_ADD("y2404_1", Y2404_NEW, XTAL_14_31818MHz/8) /* verified on pcb */ |
328 | 345 | MCFG_SOUND_ROUTE(ALL_OUTPUTS, "filter1", 0.75) |
| 346 | MCFG_SOUND_CONFIG(psg_intf) |
329 | 347 | |
330 | | MCFG_SOUND_ADD("sn2", Y2404, XTAL_14_31818MHz/8) /* verified on pcb */ |
| 348 | MCFG_SOUND_ADD("y2404_2", Y2404_NEW, XTAL_14_31818MHz/8) /* verified on pcb */ |
331 | 349 | MCFG_SOUND_ROUTE(ALL_OUTPUTS, "filter2", 0.75) |
| 350 | MCFG_SOUND_CONFIG(psg_intf) |
332 | 351 | |
333 | | MCFG_SOUND_ADD("sn3", Y2404, XTAL_14_31818MHz/8) /* verified on pcb */ |
| 352 | MCFG_SOUND_ADD("y2404_3", Y2404_NEW, XTAL_14_31818MHz/8) /* verified on pcb */ |
334 | 353 | MCFG_SOUND_ROUTE(ALL_OUTPUTS, "filter3", 0.75) |
| 354 | MCFG_SOUND_CONFIG(psg_intf) |
335 | 355 | |
336 | 356 | MCFG_SOUND_ADD("filter1", FILTER_RC, 0) |
337 | 357 | MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) |
trunk/src/mame/drivers/mrdo.c
r17421 | r17422 | |
46 | 46 | AM_RANGE(0x8800, 0x8fff) AM_RAM_WRITE(mrdo_fgvideoram_w) AM_SHARE("fgvideoram") |
47 | 47 | AM_RANGE(0x9000, 0x90ff) AM_WRITEONLY AM_SHARE("spriteram") |
48 | 48 | AM_RANGE(0x9800, 0x9800) AM_WRITE(mrdo_flipscreen_w) /* screen flip + playfield priority */ |
49 | | AM_RANGE(0x9801, 0x9801) AM_DEVWRITE_LEGACY("sn1", sn76496_w) |
50 | | AM_RANGE(0x9802, 0x9802) AM_DEVWRITE_LEGACY("sn2", sn76496_w) |
| 49 | AM_RANGE(0x9801, 0x9801) AM_DEVWRITE("u8106_1", u8106_new_device, write) |
| 50 | AM_RANGE(0x9802, 0x9802) AM_DEVWRITE("u8106_2", u8106_new_device, write) |
51 | 51 | AM_RANGE(0x9803, 0x9803) AM_READ(mrdo_SECRE_r) |
52 | 52 | AM_RANGE(0xa000, 0xa000) AM_READ_PORT("P1") |
53 | 53 | AM_RANGE(0xa001, 0xa001) AM_READ_PORT("P2") |
r17421 | r17422 | |
164 | 164 | GFXDECODE_END |
165 | 165 | |
166 | 166 | |
| 167 | /************************************* |
| 168 | * |
| 169 | * Sound interface |
| 170 | * |
| 171 | *************************************/ |
| 172 | |
| 173 | |
| 174 | //------------------------------------------------- |
| 175 | // sn76496_config psg_intf |
| 176 | //------------------------------------------------- |
167 | 177 | |
| 178 | static const sn76496_config psg_intf = |
| 179 | { |
| 180 | DEVCB_NULL |
| 181 | }; |
| 182 | |
| 183 | |
168 | 184 | static MACHINE_CONFIG_START( mrdo, mrdo_state ) |
169 | 185 | |
170 | 186 | /* basic machine hardware */ |
r17421 | r17422 | |
186 | 202 | /* sound hardware */ |
187 | 203 | MCFG_SPEAKER_STANDARD_MONO("mono") |
188 | 204 | |
189 | | MCFG_SOUND_ADD("sn1", U8106, MAIN_CLOCK/2) /* sn76489-equivalent?, Verified */ |
| 205 | MCFG_SOUND_ADD("u8106_1", U8106_NEW, MAIN_CLOCK/2) /* sn76489-equivalent?, Verified */ |
190 | 206 | MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) |
| 207 | MCFG_SOUND_CONFIG(psg_intf) |
191 | 208 | |
192 | | MCFG_SOUND_ADD("sn2", U8106, MAIN_CLOCK/2) /* sn76489-equivalent?, Verified */ |
| 209 | MCFG_SOUND_ADD("u8106_2", U8106_NEW, MAIN_CLOCK/2) /* sn76489-equivalent?, Verified */ |
193 | 210 | MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) |
| 211 | MCFG_SOUND_CONFIG(psg_intf) |
194 | 212 | MACHINE_CONFIG_END |
195 | 213 | |
196 | 214 | |
trunk/src/mame/drivers/pachifev.c
r17421 | r17422 | |
143 | 143 | AM_RANGE(0xff08, 0xff08) AM_READ_PORT("DSW3") |
144 | 144 | AM_RANGE(0xff10, 0xff10) AM_DEVREADWRITE("tms9928a", tms9928a_device, vram_read, vram_write) |
145 | 145 | AM_RANGE(0xff12, 0xff12) AM_DEVREADWRITE("tms9928a", tms9928a_device, register_read, register_write) |
146 | | AM_RANGE(0xff20, 0xff20) AM_DEVWRITE_LEGACY("sn76_1", sn76496_w) |
147 | | AM_RANGE(0xff30, 0xff30) AM_DEVWRITE_LEGACY("sn76_2", sn76496_w) |
| 146 | AM_RANGE(0xff20, 0xff20) AM_DEVWRITE("y2404_1", y2404_new_device, write) |
| 147 | AM_RANGE(0xff30, 0xff30) AM_DEVWRITE("y2404_2", y2404_new_device, write) |
148 | 148 | AM_RANGE(0xff40, 0xff40) AM_WRITE(controls_w) |
149 | 149 | AM_RANGE(0xff50, 0xff50) AM_WRITENOP /* unknown */ |
150 | 150 | AM_RANGE(0xfffa, 0xfffb) AM_NOP /* decrementer */ |
r17421 | r17422 | |
246 | 246 | INPUT_PORTS_END |
247 | 247 | |
248 | 248 | |
| 249 | /************************************* |
| 250 | * |
| 251 | * Sound interface |
| 252 | * |
| 253 | *************************************/ |
| 254 | |
| 255 | |
| 256 | //------------------------------------------------- |
| 257 | // sn76496_config psg_intf |
| 258 | //------------------------------------------------- |
| 259 | |
| 260 | static const sn76496_config psg_intf = |
| 261 | { |
| 262 | DEVCB_NULL |
| 263 | }; |
| 264 | |
| 265 | |
249 | 266 | #if USE_MSM |
250 | 267 | |
251 | 268 | |
r17421 | r17422 | |
378 | 395 | MCFG_SOUND_CONFIG(msm5205_config) |
379 | 396 | MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00) |
380 | 397 | #endif |
381 | | MCFG_SOUND_ADD("sn76_1", Y2404, XTAL_10_738635MHz/3) /* guess */ |
| 398 | MCFG_SOUND_ADD("y2404_1", Y2404_NEW, XTAL_10_738635MHz/3) /* guess */ |
382 | 399 | MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.30) |
383 | | MCFG_SOUND_ADD("sn76_2", Y2404, XTAL_10_738635MHz/3) /* guess */ |
| 400 | MCFG_SOUND_CONFIG(psg_intf) |
| 401 | MCFG_SOUND_ADD("y2404_2", Y2404_NEW, XTAL_10_738635MHz/3) /* guess */ |
384 | 402 | MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.30) |
| 403 | MCFG_SOUND_CONFIG(psg_intf) |
385 | 404 | MACHINE_CONFIG_END |
386 | 405 | |
387 | 406 | ROM_START( pachifev ) |