trunk/src/mame/drivers/djmain.c
r241438 | r241439 | |
391 | 391 | * |
392 | 392 | *************************************/ |
393 | 393 | |
394 | | static ADDRESS_MAP_START( memory_map, AS_PROGRAM, 32, djmain_state ) |
| 394 | static ADDRESS_MAP_START( maincpu_djmain, AS_PROGRAM, 32, djmain_state ) |
395 | 395 | AM_RANGE(0x000000, 0x0fffff) AM_ROM // PRG ROM |
396 | 396 | AM_RANGE(0x400000, 0x40ffff) AM_RAM // WORK RAM |
397 | 397 | AM_RANGE(0x480000, 0x48443f) AM_RAM_WRITE(paletteram32_w) // COLOR RAM |
r241438 | r241439 | |
414 | 414 | AM_RANGE(0x802000, 0x802fff) AM_WRITE(unknown802000_w) // ?? |
415 | 415 | AM_RANGE(0x803000, 0x80309f) AM_READWRITE(obj_ctrl_r, obj_ctrl_w) // OBJECT REGS |
416 | 416 | AM_RANGE(0x803800, 0x803fff) AM_READ(obj_rom_r) // OBJECT ROM readthrough (for POST) |
| 417 | ADDRESS_MAP_END |
| 418 | |
| 419 | static ADDRESS_MAP_START(maincpu_djmainj, AS_PROGRAM, 32, djmain_state) |
| 420 | AM_IMPORT_FROM(maincpu_djmain) |
| 421 | |
417 | 422 | AM_RANGE(0xc00000, 0xc01fff) AM_DEVREADWRITE("k056832", k056832_device, ram_long_r, ram_long_w) // VIDEO RAM (tilemap) (beatmania) |
418 | 423 | AM_RANGE(0xc02000, 0xc02047) AM_WRITE(unknownc02000_w) // ?? |
| 424 | AM_RANGE(0xf00000, 0xf0000f) AM_DEVREADWRITE16("ata", ata_interface_device, read_cs0, write_cs0, 0xffffffff) // IDE control regs (beatmania) |
| 425 | AM_RANGE(0xf40000, 0xf4000f) AM_DEVREADWRITE16("ata", ata_interface_device, read_cs1, write_cs1, 0xffffffff) // IDE status control reg (beatmania) |
| 426 | ADDRESS_MAP_END |
| 427 | |
| 428 | static ADDRESS_MAP_START(maincpu_djmainu, AS_PROGRAM, 32, djmain_state) |
| 429 | AM_IMPORT_FROM(maincpu_djmain) |
| 430 | |
419 | 431 | AM_RANGE(0xd00000, 0xd0000f) AM_DEVREADWRITE16("ata", ata_interface_device, read_cs0, write_cs0, 0xffffffff) // IDE control regs (hiphopmania) |
420 | 432 | AM_RANGE(0xd40000, 0xd4000f) AM_DEVREADWRITE16("ata", ata_interface_device, read_cs1, write_cs1, 0xffffffff) // IDE status control reg (hiphopmania) |
421 | 433 | AM_RANGE(0xe00000, 0xe01fff) AM_DEVREADWRITE("k056832", k056832_device, ram_long_r, ram_long_w) // VIDEO RAM (tilemap) (hiphopmania) |
422 | | AM_RANGE(0xf00000, 0xf0000f) AM_DEVREADWRITE16("ata", ata_interface_device, read_cs0, write_cs0, 0xffffffff) // IDE control regs (beatmania) |
423 | | AM_RANGE(0xf40000, 0xf4000f) AM_DEVREADWRITE16("ata", ata_interface_device, read_cs1, write_cs1, 0xffffffff) // IDE status control reg (beatmania) |
424 | 434 | ADDRESS_MAP_END |
425 | 435 | |
| 436 | static ADDRESS_MAP_START(maincpu_djmaina, AS_PROGRAM, 32, djmain_state) |
| 437 | AM_IMPORT_FROM(maincpu_djmain) |
426 | 438 | |
| 439 | AM_RANGE(0xc00000, 0xc0000f) AM_DEVREADWRITE16("ata", ata_interface_device, read_cs0, write_cs0, 0xffffffff) // IDE control regs |
| 440 | AM_RANGE(0xc40000, 0xc4000f) AM_DEVREADWRITE16("ata", ata_interface_device, read_cs1, write_cs1, 0xffffffff) // IDE status control reg |
| 441 | AM_RANGE(0xf00000, 0xf01fff) AM_DEVREADWRITE("k056832", k056832_device, ram_long_r, ram_long_w) // VIDEO RAM (tilemap) |
| 442 | ADDRESS_MAP_END |
427 | 443 | |
| 444 | |
| 445 | |
428 | 446 | /************************************* |
429 | 447 | * |
430 | 448 | * Port definitions |
r241438 | r241439 | |
1178 | 1196 | PORT_DIPUNKNOWN_DIPLOC( 0x01, 0x01, "SW3:6" ) |
1179 | 1197 | /* "All Song Mode" 3-3=On */ |
1180 | 1198 | |
1181 | | #ifdef UNUSED_DEFINITION |
1182 | 1199 | static INPUT_PORTS_START( popn1 ) |
1183 | 1200 | PORT_INCLUDE( popnmusic_btn ) |
1184 | 1201 | POPN1_DSW1 |
1185 | 1202 | POPN1_DSW2 |
1186 | 1203 | POPN1_DSW3 |
1187 | 1204 | INPUT_PORTS_END |
1188 | | #endif |
1189 | 1205 | |
1190 | | static INPUT_PORTS_START( popnmusic ) /* popn2 and popn3 */ |
| 1206 | static INPUT_PORTS_START( popn2 ) /* popn2 and popn3 */ |
1191 | 1207 | PORT_INCLUDE( popnmusic_btn ) |
1192 | 1208 | POPN2_DSW1 |
1193 | 1209 | POPN2_DSW2 |
r241438 | r241439 | |
1377 | 1393 | * |
1378 | 1394 | *************************************/ |
1379 | 1395 | |
1380 | | static MACHINE_CONFIG_START( djmain, djmain_state ) |
| 1396 | static MACHINE_CONFIG_START( djmainj, djmain_state ) |
1381 | 1397 | |
1382 | 1398 | /* basic machine hardware */ |
1383 | 1399 | // popn3 works 9.6 MHz or slower in some songs */ |
1384 | 1400 | //MCFG_CPU_ADD("maincpu", M68EC020, 18432000/2) /* 9.216 MHz!? */ |
1385 | 1401 | MCFG_CPU_ADD("maincpu", M68EC020, 32000000/4) /* 8.000 MHz!? */ |
1386 | | MCFG_CPU_PROGRAM_MAP(memory_map) |
| 1402 | MCFG_CPU_PROGRAM_MAP(maincpu_djmainj) |
1387 | 1403 | MCFG_CPU_VBLANK_INT_DRIVER("screen", djmain_state, vb_interrupt) |
1388 | 1404 | |
1389 | 1405 | MCFG_ATA_INTERFACE_ADD("ata", ata_devices, "hdd", NULL, true) |
r241438 | r241439 | |
1422 | 1438 | MCFG_SOUND_ROUTE(1, "rspeaker", 1.0) |
1423 | 1439 | MACHINE_CONFIG_END |
1424 | 1440 | |
| 1441 | static MACHINE_CONFIG_DERIVED(djmainu, djmainj) |
| 1442 | MCFG_CPU_MODIFY("maincpu") |
| 1443 | MCFG_CPU_PROGRAM_MAP(maincpu_djmainu) |
| 1444 | MACHINE_CONFIG_END |
1425 | 1445 | |
| 1446 | static MACHINE_CONFIG_DERIVED(djmaina, djmainj) |
| 1447 | MCFG_CPU_MODIFY("maincpu") |
| 1448 | MCFG_CPU_PROGRAM_MAP(maincpu_djmaina) |
| 1449 | MACHINE_CONFIG_END |
1426 | 1450 | |
| 1451 | |
| 1452 | |
1427 | 1453 | /************************************* |
1428 | 1454 | * |
1429 | 1455 | * ROM definitions |
r241438 | r241439 | |
1806 | 1832 | ROM_REGION( 0x1000000, "shared", ROMREGION_ERASE00 ) /* K054539 RAM */ |
1807 | 1833 | ROM_END |
1808 | 1834 | |
| 1835 | ROM_START( popn1 ) |
| 1836 | ROM_REGION( 0x100000, "maincpu", 0 ) /* MC68EC020FG25 MPU */ |
| 1837 | ROM_LOAD16_BYTE( "803aaa01.6a", 0x000000, 0x80000, CRC(70466eff) SHA1(d59f97a6882ad65afa3b5de491d44bb4d839d286) ) |
| 1838 | ROM_LOAD16_BYTE( "803aaa02.8a", 0x000001, 0x80000, CRC(c102c909) SHA1(630a74ccec78d36adaba38a85ed6a0e45dca96a4) ) |
| 1839 | |
| 1840 | ROM_REGION( 0x200000, "gfx1", 0) /* SPRITE */ |
| 1841 | ROM_LOAD16_BYTE( "803aaa03.19a", 0x000000, 0x80000, CRC(a0970b32) SHA1(4bf06f977f67f13d0994e80021faaefed015ca1c) ) |
| 1842 | ROM_LOAD16_BYTE( "803aaa04.20a", 0x000001, 0x80000, CRC(a158b950) SHA1(535d994a68fe56c8a93d460e5272b1a0b081383d) ) |
| 1843 | ROM_LOAD16_BYTE( "803aaa05.22a", 0x100000, 0x80000, CRC(8a23c18d) SHA1(714b68a3112dff52feba6a50ae15c02d041b1def) ) |
| 1844 | ROM_LOAD16_BYTE( "803aaa06.24a", 0x100001, 0x80000, CRC(bd6450ff) SHA1(bb89c65d1b0e38c0a26ec4cccd35103583efff45) ) |
| 1845 | |
| 1846 | ROM_REGION( 0x200000, "gfx2", 0 ) /* TILEMAP */ |
| 1847 | ROM_LOAD16_BYTE( "803aaa07.22d", 0x000000, 0x80000, CRC(4c97dbf0) SHA1(c33f84e2c1a59294413163a5546cb2fe092e42d1) ) |
| 1848 | ROM_LOAD16_BYTE( "803aaa08.23d", 0x000001, 0x80000, CRC(cc6b21d3) SHA1(eac3b92bc392265df08b0311320c4e23f257c58b) ) |
| 1849 | ROM_LOAD16_BYTE( "803aaa09.25d", 0x100000, 0x80000, CRC(45ab3978) SHA1(c34b800dfb14affcb705dffa566d046a6d1e7c7c) ) |
| 1850 | ROM_LOAD16_BYTE( "803aaa10.27d", 0x100001, 0x80000, CRC(a487ad02) SHA1(ca9edb611ddf2f1e7d42b049ce867b173fce3634) ) |
| 1851 | |
| 1852 | DISK_REGION( "ata:0:hdd:image" ) /* IDE HARD DRIVE */ |
| 1853 | DISK_IMAGE( "803aaa11", 0, SHA1(8684c1a1f0de9496bac0333c0302e35359173d8a) ) /* ver 1.00 JA */ |
| 1854 | |
| 1855 | ROM_REGION( 0x1000000, "shared", ROMREGION_ERASE00 ) /* K054539 RAM */ |
| 1856 | ROM_END |
| 1857 | |
1809 | 1858 | ROM_START( popn2 ) |
1810 | 1859 | ROM_REGION( 0x100000, "maincpu", 0 ) /* MC68EC020FG25 MPU */ |
1811 | 1860 | ROM_LOAD16_BYTE( "831jaa01.8a", 0x000000, 0x80000, CRC(D6214CAC) SHA1(18e74c81710228c91ab9eb554b63d9bd69b93ec8) ) |
r241438 | r241439 | |
1854 | 1903 | ROM_REGION( 0x1000000, "shared", ROMREGION_ERASE00 ) /* K054539 RAM */ |
1855 | 1904 | ROM_END |
1856 | 1905 | |
1857 | | ROM_START( popn1 ) |
| 1906 | ROM_START( popn1j ) |
1858 | 1907 | ROM_REGION( 0x100000, "maincpu", 0 ) /* MC68EC020FG25 MPU */ |
1859 | 1908 | ROM_LOAD16_BYTE( "803jaa01.6a", 0x000000, 0x80000, CRC(469CEE89) SHA1(d7c3e25e48492bceb17825db357830b08a20f09a) ) |
1860 | 1909 | ROM_LOAD16_BYTE( "803jaa02.8a", 0x000001, 0x80000, CRC(112FF5A3) SHA1(74d7155a1b63d411a8c3f99e511fc4c331b4c62f) ) |
r241438 | r241439 | |
2141 | 2190 | |
2142 | 2191 | // commented out games should also run on this driver |
2143 | 2192 | |
2144 | | GAME( 1997, bm1stmix, 0, djmain, bm1stmix, djmain_state, beatmania, ROT0, "Konami", "beatmania (ver JA-B)", 0 ) |
2145 | | GAME( 1998, bm2ndmix, 0, djmain, bm2ndmix, djmain_state, beatmania, ROT0, "Konami", "beatmania 2nd MIX (ver JA-B)", 0 ) |
2146 | | GAME( 1998, bm2ndmxa, bm2ndmix, djmain, bm2ndmix, djmain_state, beatmania, ROT0, "Konami", "beatmania 2nd MIX (ver JA-A)", 0 ) |
2147 | | GAME( 1998, bm3rdmix, 0, djmain, bm3rdmix, djmain_state, beatmania, ROT0, "Konami", "beatmania 3rd MIX (ver JA-A)", 0 ) |
2148 | | GAME( 1999, bmcompmx, 0, djmain, bmcompmx, djmain_state, beatmania, ROT0, "Konami", "beatmania complete MIX (ver JA-B)", 0 ) |
2149 | | GAME( 1999, hmcompmx, bmcompmx, djmain, bmcompmx, djmain_state, hmcompmx, ROT0, "Konami", "hiphopmania complete MIX (ver UA-B)", 0 ) |
2150 | | GAME( 1999, bm4thmix, 0, djmain, bm4thmix, djmain_state, bm4thmix, ROT0, "Konami", "beatmania 4th MIX (ver JA-A)", 0 ) |
2151 | | GAME( 1999, bm5thmix, 0, djmain, bm5thmix, djmain_state, bm5thmix, ROT0, "Konami", "beatmania 5th MIX (ver JA-A)", 0 ) |
2152 | | GAME( 2000, bmcompm2, 0, djmain, bm5thmix, djmain_state, bmcompm2, ROT0, "Konami", "beatmania complete MIX 2 (ver JA-A)", 0 ) |
2153 | | GAME( 2000, hmcompm2, bmcompm2, djmain, hmcompm2, djmain_state, hmcompm2, ROT0, "Konami", "hiphopmania complete MIX 2 (ver UA-A)", 0 ) |
2154 | | GAME( 2000, bmclubmx, 0, djmain, bmclubmx, djmain_state, bmclubmx, ROT0, "Konami", "beatmania Club MIX (ver JA-A)", 0 ) |
2155 | | GAME( 2000, bmdct, 0, djmain, bmdct, djmain_state, bmdct, ROT0, "Konami", "beatmania featuring Dreams Come True (ver JA-A)", 0 ) |
2156 | | GAME( 2000, bmcorerm, 0, djmain, bmcorerm, djmain_state, bmcorerm, ROT0, "Konami", "beatmania CORE REMIX (ver JA-A)", 0 ) |
2157 | | GAME( 2001, bm6thmix, 0, djmain, bm6thmix, djmain_state, bm6thmix, ROT0, "Konami", "beatmania 6th MIX (ver JA-A)", 0 ) |
2158 | | GAME( 2001, bm7thmix, 0, djmain, bm6thmix, djmain_state, bm7thmix, ROT0, "Konami", "beatmania 7th MIX (ver JA-B)", 0 ) |
2159 | | GAME( 2002, bmfinal, 0, djmain, bm6thmix, djmain_state, bmfinal, ROT0, "Konami", "beatmania THE FINAL (ver JA-A)", 0 ) |
| 2193 | GAME( 1997, bm1stmix, 0, djmainj, bm1stmix, djmain_state, beatmania, ROT0, "Konami", "beatmania (ver JA-B)", 0 ) |
| 2194 | GAME( 1998, bm2ndmix, 0, djmainj, bm2ndmix, djmain_state, beatmania, ROT0, "Konami", "beatmania 2nd MIX (ver JA-B)", 0 ) |
| 2195 | GAME( 1998, bm2ndmxa, bm2ndmix, djmainj, bm2ndmix, djmain_state, beatmania, ROT0, "Konami", "beatmania 2nd MIX (ver JA-A)", 0 ) |
| 2196 | GAME( 1998, bm3rdmix, 0, djmainj, bm3rdmix, djmain_state, beatmania, ROT0, "Konami", "beatmania 3rd MIX (ver JA-A)", 0 ) |
| 2197 | GAME( 1999, bmcompmx, 0, djmainj, bmcompmx, djmain_state, beatmania, ROT0, "Konami", "beatmania complete MIX (ver JA-B)", 0 ) |
| 2198 | GAME( 1999, hmcompmx, bmcompmx, djmainu, bmcompmx, djmain_state, hmcompmx, ROT0, "Konami", "hiphopmania complete MIX (ver UA-B)", 0 ) |
| 2199 | GAME( 1999, bm4thmix, 0, djmainj, bm4thmix, djmain_state, bm4thmix, ROT0, "Konami", "beatmania 4th MIX (ver JA-A)", 0 ) |
| 2200 | GAME( 1999, bm5thmix, 0, djmainj, bm5thmix, djmain_state, bm5thmix, ROT0, "Konami", "beatmania 5th MIX (ver JA-A)", 0 ) |
| 2201 | GAME( 2000, bmcompm2, 0, djmainj, bm5thmix, djmain_state, bmcompm2, ROT0, "Konami", "beatmania complete MIX 2 (ver JA-A)", 0 ) |
| 2202 | GAME( 2000, hmcompm2, bmcompm2, djmainu, hmcompm2, djmain_state, hmcompm2, ROT0, "Konami", "hiphopmania complete MIX 2 (ver UA-A)", 0 ) |
| 2203 | GAME( 2000, bmclubmx, 0, djmainj, bmclubmx, djmain_state, bmclubmx, ROT0, "Konami", "beatmania Club MIX (ver JA-A)", 0 ) |
| 2204 | GAME( 2000, bmdct, 0, djmainj, bmdct, djmain_state, bmdct, ROT0, "Konami", "beatmania featuring Dreams Come True (ver JA-A)", 0 ) |
| 2205 | GAME( 2000, bmcorerm, 0, djmainj, bmcorerm, djmain_state, bmcorerm, ROT0, "Konami", "beatmania CORE REMIX (ver JA-A)", 0 ) |
| 2206 | GAME( 2001, bm6thmix, 0, djmainj, bm6thmix, djmain_state, bm6thmix, ROT0, "Konami", "beatmania 6th MIX (ver JA-A)", 0 ) |
| 2207 | GAME( 2001, bm7thmix, 0, djmainj, bm6thmix, djmain_state, bm7thmix, ROT0, "Konami", "beatmania 7th MIX (ver JA-B)", 0 ) |
| 2208 | GAME( 2002, bmfinal, 0, djmainj, bm6thmix, djmain_state, bmfinal, ROT0, "Konami", "beatmania THE FINAL (ver JA-A)", 0 ) |
2160 | 2209 | |
2161 | | GAME( 1998, popn2, 0, djmain, popnmusic, djmain_state, beatmania, ROT0, "Konami", "Pop'n Music 2 (ver JA-A)", 0 ) |
| 2210 | GAME( 1998, popn1, 0, djmaina, popn1, djmain_state, beatmania, ROT0, "Konami", "Pop'n Music 1 (ver AA-A)", 0 ) |
| 2211 | GAME( 1998, popn2, 0, djmainj, popn2, djmain_state, beatmania, ROT0, "Konami", "Pop'n Music 2 (ver JA-A)", 0 ) |
2162 | 2212 | |
2163 | 2213 | // for reference, these sets have not been verified |
2164 | | //GAME( 1998, bm3rdmxb, bm3rdmix, djmain, bm3rdmix, djmain_state, beatmania, ROT0, "Konami", "beatmania 3rd MIX (ver JA-B)", 0 ) |
| 2214 | //GAME( 1998, bm3rdmxb, bm3rdmix, djmainj, bm3rdmix, djmain_state, beatmania, ROT0, "Konami", "beatmania 3rd MIX (ver JA-B)", 0 ) |
2165 | 2215 | |
2166 | | //GAME( 1998, popn1, 0, djmain, popn1, djmain_state, beatmania, ROT0, "Konami", "Pop'n Music 1 (ver JA-A)", 0 ) |
2167 | | //GAME( 1999, popn3, 0, djmain, popnmusic, djmain_state, beatmania, ROT0, "Konami", "Pop'n Music 3 (ver JA-A)", 0 ) |
| 2216 | //GAME( 1998, popn1j, popn1, djmainj, popn1, djmain_state, beatmania, ROT0, "Konami", "Pop'n Music 1 (ver JA-A)", 0 ) |
| 2217 | //GAME( 1999, popn3, 0, djmainj, popn2, djmain_state, beatmania, ROT0, "Konami", "Pop'n Music 3 (ver JA-A)", 0 ) |
2168 | 2218 | |
2169 | | //GAME( 1999, popnstex, 0, djmain, popnstex, djmain_state, beatmania, ROT0, "Konami", "Pop'n Stage EX (ver JB-A)", 0 ) |
| 2219 | //GAME( 1999, popnstex, 0, djmainj, popnstex, djmain_state, beatmania, ROT0, "Konami", "Pop'n Stage EX (ver JB-A)", 0 ) |