trunk/src/mame/drivers/segae.c
r17560 | r17561 | |
424 | 424 | static ADDRESS_MAP_START( io_map, AS_IO, 8, systeme_state ) |
425 | 425 | ADDRESS_MAP_GLOBAL_MASK(0xff) |
426 | 426 | |
427 | | AM_RANGE(0x7b, 0x7b) AM_DEVWRITE_LEGACY("sn1", sn76496_w ) |
428 | | AM_RANGE(0x7e, 0x7f) AM_DEVWRITE_LEGACY("sn2", sn76496_w ) |
| 427 | AM_RANGE(0x7b, 0x7b) AM_DEVWRITE("sn1", segapsg_new_device, write ) |
| 428 | AM_RANGE(0x7e, 0x7f) AM_DEVWRITE("sn2", segapsg_new_device, write ) |
429 | 429 | AM_RANGE(0x7e, 0x7e) AM_DEVREAD( "vdp1", sega315_5124_device, vcount_read ) |
430 | 430 | AM_RANGE(0xba, 0xba) AM_DEVREADWRITE( "vdp1", sega315_5124_device, vram_read, vram_write ) |
431 | 431 | AM_RANGE(0xbb, 0xbb) AM_DEVREADWRITE( "vdp1", sega315_5124_device, register_read, register_write ) |
r17560 | r17561 | |
1099 | 1099 | } |
1100 | 1100 | |
1101 | 1101 | |
| 1102 | //------------------------------------------------- |
| 1103 | // sn76496_config psg_intf |
| 1104 | //------------------------------------------------- |
| 1105 | |
| 1106 | static const sn76496_config psg_intf = |
| 1107 | { |
| 1108 | DEVCB_NULL |
| 1109 | }; |
| 1110 | |
| 1111 | |
1102 | 1112 | static MACHINE_CONFIG_START( systeme, systeme_state ) |
1103 | 1113 | MCFG_CPU_ADD("maincpu", Z80, XTAL_10_738635MHz/2) /* Z80B @ 5.3693Mhz */ |
1104 | 1114 | MCFG_CPU_PROGRAM_MAP(systeme_map) |
r17560 | r17561 | |
1122 | 1132 | /* sound hardware */ |
1123 | 1133 | MCFG_SPEAKER_STANDARD_MONO("mono") |
1124 | 1134 | |
1125 | | MCFG_SOUND_ADD("sn1", SEGAPSG, XTAL_10_738635MHz/3) |
| 1135 | MCFG_SOUND_ADD("sn1", SEGAPSG_NEW, XTAL_10_738635MHz/3) |
1126 | 1136 | MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) |
| 1137 | MCFG_SOUND_CONFIG(psg_intf) |
1127 | 1138 | |
1128 | | MCFG_SOUND_ADD("sn2", SEGAPSG, XTAL_10_738635MHz/3) |
| 1139 | MCFG_SOUND_ADD("sn2", SEGAPSG_NEW, XTAL_10_738635MHz/3) |
1129 | 1140 | MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) |
| 1141 | MCFG_SOUND_CONFIG(psg_intf) |
1130 | 1142 | MACHINE_CONFIG_END |
1131 | 1143 | |
1132 | 1144 | |
trunk/src/mame/drivers/goldstar.c
r17560 | r17561 | |
201 | 201 | AM_RANGE(0xf840, 0xf840) AM_DEVWRITE_LEGACY("aysnd", ay8910_address_w) |
202 | 202 | // AM_RANGE(0xf850, 0xf850) AM_WRITE_LEGACY(ncb3_p1_flip_w) // need flip? |
203 | 203 | // AM_RANGE(0xf860, 0xf860) AM_WRITE_LEGACY(ncb3_p2_flip_w) // need flip? |
204 | | AM_RANGE(0xf870, 0xf870) AM_DEVWRITE_LEGACY("snsnd", sn76496_w) /* guess... device is initialized, but doesn't seems to be used.*/ |
| 204 | AM_RANGE(0xf870, 0xf870) AM_DEVWRITE("snsnd", sn76489_new_device, write) /* guess... device is initialized, but doesn't seems to be used.*/ |
205 | 205 | ADDRESS_MAP_END |
206 | 206 | |
207 | 207 | static ADDRESS_MAP_START( ncb3_readwriteport, AS_IO, 8, goldstar_state ) |
r17560 | r17561 | |
377 | 377 | AM_RANGE(0xb830, 0xb830) AM_DEVREADWRITE_LEGACY("aysnd", ay8910_r, ay8910_data_w) |
378 | 378 | AM_RANGE(0xb840, 0xb840) AM_DEVWRITE_LEGACY("aysnd", ay8910_address_w) /* no sound... only use both ports for DSWs */ |
379 | 379 | AM_RANGE(0xb850, 0xb850) AM_WRITE(lucky8_outport_w) |
380 | | AM_RANGE(0xb870, 0xb870) AM_DEVWRITE_LEGACY("snsnd", sn76496_w) /* sound */ |
| 380 | AM_RANGE(0xb870, 0xb870) AM_DEVWRITE("snsnd", sn76489_new_device, write) /* sound */ |
381 | 381 | AM_RANGE(0xf800, 0xffff) AM_RAM |
382 | 382 | ADDRESS_MAP_END |
383 | 383 | |
r17560 | r17561 | |
422 | 422 | AM_RANGE(0xb840, 0xb840) AM_DEVWRITE_LEGACY("aysnd", ay8910_address_w) /* no sound... only use both ports for DSWs */ |
423 | 423 | AM_RANGE(0xb850, 0xb850) AM_WRITE(magodds_outb850_w) //lamps |
424 | 424 | AM_RANGE(0xb860, 0xb860) AM_WRITE(magodds_outb860_w) //watchdog |
425 | | AM_RANGE(0xb870, 0xb870) AM_DEVWRITE_LEGACY("snsnd", sn76496_w) /* sound */ |
| 425 | AM_RANGE(0xb870, 0xb870) AM_DEVWRITE("snsnd", sn76489_new_device, write) /* sound */ |
426 | 426 | AM_RANGE(0xc000, 0xffff) AM_ROM AM_REGION("maincpu",0xc000) |
427 | 427 | ADDRESS_MAP_END |
428 | 428 | |
r17560 | r17561 | |
444 | 444 | AM_RANGE(0xb830, 0xb830) AM_WRITENOP /* no ay8910 */ |
445 | 445 | AM_RANGE(0xb840, 0xb840) AM_WRITENOP /* no ay8910 */ |
446 | 446 | AM_RANGE(0xb850, 0xb850) AM_WRITE(lucky8_outport_w) |
447 | | AM_RANGE(0xb870, 0xb870) AM_DEVWRITE_LEGACY("snsnd", sn76496_w) /* sound */ |
| 447 | AM_RANGE(0xb870, 0xb870) AM_DEVWRITE("snsnd", sn76489_new_device, write) /* sound */ |
448 | 448 | AM_RANGE(0xf800, 0xffff) AM_RAM |
449 | 449 | ADDRESS_MAP_END |
450 | 450 | |
r17560 | r17561 | |
482 | 482 | AM_RANGE(0xb830, 0xb830) AM_DEVREADWRITE_LEGACY("aysnd", ay8910_r, ay8910_data_w) |
483 | 483 | AM_RANGE(0xb840, 0xb840) AM_DEVWRITE_LEGACY("aysnd", ay8910_address_w) /* no sound... only use ports */ |
484 | 484 | AM_RANGE(0xb850, 0xb850) AM_WRITENOP /* just turn off the lamps, if exist */ |
485 | | AM_RANGE(0xb870, 0xb870) AM_DEVWRITE_LEGACY("snsnd", sn76496_w) /* sound */ |
| 485 | AM_RANGE(0xb870, 0xb870) AM_DEVWRITE("snsnd", sn76489_new_device, write) /* sound */ |
486 | 486 | AM_RANGE(0xf800, 0xffff) AM_RAM |
487 | 487 | ADDRESS_MAP_END |
488 | 488 | |
r17560 | r17561 | |
504 | 504 | AM_RANGE(0xb830, 0xb830) AM_DEVREADWRITE_LEGACY("aysnd", ay8910_r, ay8910_data_w) |
505 | 505 | AM_RANGE(0xb840, 0xb840) AM_DEVWRITE_LEGACY("aysnd", ay8910_address_w) /* no sound... only use both ports for DSWs */ |
506 | 506 | AM_RANGE(0xb850, 0xb850) AM_WRITE(lucky8_outport_w) |
507 | | AM_RANGE(0xb870, 0xb870) AM_DEVWRITE_LEGACY("snsnd", sn76496_w) /* sound */ |
| 507 | AM_RANGE(0xb870, 0xb870) AM_DEVWRITE("snsnd", sn76489_new_device, write) /* sound */ |
508 | 508 | // AM_RANGE(0xc000, 0xc003) AM_DEVREADWRITE("ppi8255_3", i8255_device, read, write) /* Other PPI initialized? */ |
509 | 509 | AM_RANGE(0xd000, 0xefff) AM_ROM |
510 | 510 | AM_RANGE(0xf000, 0xffff) AM_RAM |
r17560 | r17561 | |
5840 | 5840 | DEVCB_NULL |
5841 | 5841 | }; |
5842 | 5842 | |
| 5843 | |
| 5844 | //------------------------------------------------- |
| 5845 | // sn76496_config psg_intf |
| 5846 | //------------------------------------------------- |
| 5847 | |
| 5848 | static const sn76496_config psg_intf = |
| 5849 | { |
| 5850 | DEVCB_NULL |
| 5851 | }; |
| 5852 | |
| 5853 | |
5843 | 5854 | static MACHINE_CONFIG_START( goldstar, goldstar_state ) |
5844 | 5855 | |
5845 | 5856 | /* basic machine hardware */ |
r17560 | r17561 | |
6032 | 6043 | /* sound hardware */ |
6033 | 6044 | MCFG_SPEAKER_STANDARD_MONO("mono") |
6034 | 6045 | |
6035 | | MCFG_SOUND_ADD("snsnd", SN76489, PSG_CLOCK) |
| 6046 | MCFG_SOUND_ADD("snsnd", SN76489_NEW, PSG_CLOCK) |
6036 | 6047 | MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.80) |
6037 | | |
| 6048 | MCFG_SOUND_CONFIG(psg_intf) |
| 6049 | |
6038 | 6050 | MCFG_SOUND_ADD("aysnd", AY8910, AY_CLOCK) |
6039 | 6051 | MCFG_SOUND_CONFIG(ay8910_config) |
6040 | 6052 | MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) |
r17560 | r17561 | |
6073 | 6085 | /* sound hardware */ |
6074 | 6086 | MCFG_SPEAKER_STANDARD_MONO("mono") |
6075 | 6087 | |
6076 | | MCFG_SOUND_ADD("snsnd", SN76489, PSG_CLOCK) |
| 6088 | MCFG_SOUND_ADD("snsnd", SN76489_NEW, PSG_CLOCK) |
6077 | 6089 | MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.80) |
| 6090 | MCFG_SOUND_CONFIG(psg_intf) |
6078 | 6091 | |
6079 | 6092 | MCFG_SOUND_ADD("aysnd", AY8910, AY_CLOCK) |
6080 | 6093 | MCFG_SOUND_CONFIG(ay8910_config) |
r17560 | r17561 | |
6114 | 6127 | /* sound hardware */ |
6115 | 6128 | MCFG_SPEAKER_STANDARD_MONO("mono") |
6116 | 6129 | |
6117 | | MCFG_SOUND_ADD("snsnd", SN76489, PSG_CLOCK) |
| 6130 | MCFG_SOUND_ADD("snsnd", SN76489_NEW, PSG_CLOCK) |
6118 | 6131 | MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.80) |
| 6132 | MCFG_SOUND_CONFIG(psg_intf) |
6119 | 6133 | |
6120 | 6134 | MCFG_SOUND_ADD("aysnd", AY8910, AY_CLOCK) |
6121 | 6135 | MCFG_SOUND_CONFIG(ay8910_config) |
r17560 | r17561 | |
6271 | 6285 | /* sound hardware */ |
6272 | 6286 | MCFG_SPEAKER_STANDARD_MONO("mono") |
6273 | 6287 | |
6274 | | MCFG_SOUND_ADD("snsnd", SN76489, PSG_CLOCK) |
| 6288 | MCFG_SOUND_ADD("snsnd", SN76489_NEW, PSG_CLOCK) |
6275 | 6289 | MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.80) |
| 6290 | MCFG_SOUND_CONFIG(psg_intf) |
6276 | 6291 | |
6277 | 6292 | MCFG_SOUND_ADD("aysnd", AY8910, AY_CLOCK) |
6278 | 6293 | MCFG_SOUND_CONFIG(lucky8_ay8910_config) |
r17560 | r17561 | |
6310 | 6325 | /* sound hardware */ |
6311 | 6326 | MCFG_SPEAKER_STANDARD_MONO("mono") |
6312 | 6327 | |
6313 | | MCFG_SOUND_ADD("snsnd", SN76489, PSG_CLOCK) |
| 6328 | MCFG_SOUND_ADD("snsnd", SN76489_NEW, PSG_CLOCK) |
6314 | 6329 | MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.80) |
| 6330 | MCFG_SOUND_CONFIG(psg_intf) |
6315 | 6331 | |
6316 | 6332 | MCFG_SOUND_ADD("aysnd", AY8910, AY_CLOCK) |
6317 | 6333 | MCFG_SOUND_CONFIG(lucky8_ay8910_config) |
r17560 | r17561 | |
6349 | 6365 | /* sound hardware */ |
6350 | 6366 | MCFG_SPEAKER_STANDARD_MONO("mono") |
6351 | 6367 | |
6352 | | MCFG_SOUND_ADD("snsnd", SN76489, PSG_CLOCK) |
| 6368 | MCFG_SOUND_ADD("snsnd", SN76489_NEW, PSG_CLOCK) |
6353 | 6369 | MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.80) |
| 6370 | MCFG_SOUND_CONFIG(psg_intf) |
6354 | 6371 | |
6355 | 6372 | MCFG_SOUND_ADD("aysnd", AY8910, AY_CLOCK) |
6356 | 6373 | MCFG_SOUND_CONFIG(lucky8_ay8910_config) |
r17560 | r17561 | |
6405 | 6422 | /* sound hardware */ |
6406 | 6423 | MCFG_SPEAKER_STANDARD_MONO("mono") |
6407 | 6424 | |
6408 | | MCFG_SOUND_ADD("snsnd", SN76489, PSG_CLOCK) |
| 6425 | MCFG_SOUND_ADD("snsnd", SN76489_NEW, PSG_CLOCK) |
6409 | 6426 | MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.00) // shut up annoying whine |
| 6427 | MCFG_SOUND_CONFIG(psg_intf) |
6410 | 6428 | |
6411 | 6429 | MCFG_SOUND_ADD("aysnd", AY8910, AY_CLOCK) |
6412 | 6430 | MCFG_SOUND_CONFIG(lucky8_ay8910_config) |
r17560 | r17561 | |
6445 | 6463 | /* sound hardware */ |
6446 | 6464 | MCFG_SPEAKER_STANDARD_MONO("mono") |
6447 | 6465 | |
6448 | | MCFG_SOUND_ADD("snsnd", SN76489, PSG_CLOCK) |
| 6466 | MCFG_SOUND_ADD("snsnd", SN76489_NEW, PSG_CLOCK) |
6449 | 6467 | MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.80) |
| 6468 | MCFG_SOUND_CONFIG(psg_intf) |
6450 | 6469 | |
6451 | 6470 | MACHINE_CONFIG_END |
6452 | 6471 | |
r17560 | r17561 | |
6481 | 6500 | /* sound hardware */ |
6482 | 6501 | MCFG_SPEAKER_STANDARD_MONO("mono")//set up a standard mono speaker called 'mono' |
6483 | 6502 | |
6484 | | MCFG_SOUND_ADD("snsnd", SN76489, PSG_CLOCK) |
| 6503 | MCFG_SOUND_ADD("snsnd", SN76489_NEW, PSG_CLOCK) |
6485 | 6504 | MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.80) |
| 6505 | MCFG_SOUND_CONFIG(psg_intf) |
6486 | 6506 | |
6487 | 6507 | MCFG_SOUND_ADD("aysnd", AY8910, AY_CLOCK) |
6488 | 6508 | MCFG_SOUND_CONFIG(ladylinr_ay8910_config) |
r17560 | r17561 | |
6521 | 6541 | /* sound hardware */ |
6522 | 6542 | MCFG_SPEAKER_STANDARD_MONO("mono") |
6523 | 6543 | |
6524 | | MCFG_SOUND_ADD("snsnd", SN76489, PSG_CLOCK) |
| 6544 | MCFG_SOUND_ADD("snsnd", SN76489_NEW, PSG_CLOCK) |
6525 | 6545 | MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.80) |
| 6546 | MCFG_SOUND_CONFIG(psg_intf) |
6526 | 6547 | |
6527 | 6548 | MCFG_SOUND_ADD("aysnd", AY8910, AY_CLOCK) |
6528 | 6549 | MCFG_SOUND_CONFIG(lucky8_ay8910_config) |