Previous 199869 Revisions Next

r21870 Friday 15th March, 2013 at 08:23:28 UTC by Robbbert
sf2m3, sf2m8 - boots up, sound works, some gfx issues
[src/mame/drivers]cps1.c
[src/mame/includes]cps1.h
[src/mame/video]cps1.c

trunk/src/mame/video/cps1.c
r21869r21870
464464#define CPS_B_21_QS4 0x2e,0x0c01,  -1,  -1,  -1,  -1,  0x1c,0x1e,0x08,  0x16,{0x00,0x02,0x28,0x2a},0x2c, {0x04,0x08,0x10,0x00,0x00}
465465#define CPS_B_21_QS5 0x1e,0x0c02,  -1,  -1,  -1,  -1,  0x0c, -1,  -1,   0x2a,{0x2c,0x2e,0x30,0x32},0x1c, {0x04,0x08,0x10,0x00,0x00}
466466#define HACK_B_1      -1,   -1,    -1,  -1,  -1,  -1,   -1,  -1,  -1,   0x14,{0x12,0x10,0x0e,0x0c},0x0a, {0x0e,0x0e,0x0e,0x30,0x30}
467#define HACK_H_3      -1,   -1,    -1,  -1,  -1,  -1,   -1,  -1,  -1,   0x04,{0x12,0x10,0x0e,0x0c},0x0a, {0x02,0xc4,0x18,0x00,0x00}
467468
468469/*
469470CPS_B_21_DEF is CPS-B-21 at default settings (no battery)
r21869r21870
13851386   {"sf2dkot2",    CPS_B_21_DEF, mapper_S9263B, 0x36 },
13861387   {"sf2m1",       CPS_B_21_DEF, mapper_S9263B, 0x36 },
13871388   {"sf2m2",       CPS_B_21_DEF, mapper_S9263B, 0x36, 0, 0, 1 },
1388   {"sf2m3",       CPS_B_21_DEF, mapper_S9263B, 0x36 },
1389   {"sf2m3",       HACK_H_3,     mapper_S9263B, 0,    0, 0, 1 },
13891390   {"sf2m4",       HACK_B_1,     mapper_S9263B, 0x36, 0, 0, 1 },
13901391   {"sf2m5",       CPS_B_21_DEF, mapper_S9263B, 0x36, 0, 0, 1 },
13911392   {"sf2m6",       CPS_B_21_DEF, mapper_S9263B, 0x36, 0, 0, 1 },
13921393   {"sf2m7",       CPS_B_21_DEF, mapper_S9263B, 0x36, 0, 0, 1 },
1394   {"sf2m8",       HACK_H_3,     mapper_S9263B, 0,    0, 0, 1 },
13931395   {"sf2dongb",    CPS_B_21_DEF, mapper_S9263B, 0x36 },
1394   //sf2m8 unsupported
13951396   {"sf2yyc",      CPS_B_21_DEF, mapper_S9263B, 0x36, 0, 0, 1 },
13961397   {"sf2koryu",    CPS_B_21_DEF, mapper_S9263B, 0x36, 0, 0, 1 },
13971398   {"sf2mdt",      CPS_B_21_DEF, mapper_S9263B, 0x36, 0, 0, 1 },
trunk/src/mame/includes/cps1.h
r21869r21870
165165   msm5205_device *m_msm_1;    // fcrash
166166   msm5205_device *m_msm_2;    // fcrash
167167   DECLARE_READ16_MEMBER(cps1_hack_dsw_r);
168   DECLARE_READ16_MEMBER(cps1_in1_r);
169   DECLARE_READ16_MEMBER(cps1_in2_r);
170   DECLARE_READ16_MEMBER(cps1_in3_r);
168171   DECLARE_READ16_MEMBER(forgottn_dial_0_r);
169172   DECLARE_READ16_MEMBER(forgottn_dial_1_r);
170173   DECLARE_WRITE16_MEMBER(forgottn_dial_0_reset_w);
trunk/src/mame/drivers/cps1.c
r21869r21870
264264   return (in << 8) | in;
265265}
266266
267READ16_MEMBER(cps_state::cps1_in1_r)
268{
269   int in = ioport("IN1")->read();
270   return (in << 8) | in;
271}
272
273READ16_MEMBER(cps_state::cps1_in2_r)
274{
275   int in = ioport("IN2")->read();
276   return (in << 8) | in;
277}
278
279READ16_MEMBER(cps_state::cps1_in3_r)
280{
281   int in = ioport("IN3")->read();
282   return (in << 8) | in;
283}
284
267285READ16_MEMBER(cps_state::forgottn_dial_0_r)
268286{
269287   return ((ioport("DIAL0")->read() - m_dial[0]) >> (8 * offset)) & 0xff;
r21869r21870
622640   AM_RANGE(0xf000, 0xffff) AM_RAM AM_SHARE("qsound_ram2")
623641ADDRESS_MAP_END
624642
643static ADDRESS_MAP_START( sf2m3_map, AS_PROGRAM, 16, cps_state )
644   AM_RANGE(0x000000, 0x3fffff) AM_ROM
645   AM_RANGE(0x800010, 0x800011) AM_READ_PORT("IN1")            /* Player input ports */
646   AM_RANGE(0x800028, 0x80002f) AM_READ(cps1_hack_dsw_r)            /* System input ports / Dip Switches */
647   AM_RANGE(0x800030, 0x800037) AM_WRITE(cps1_coinctrl_w)
648   AM_RANGE(0x800100, 0x80013f) AM_WRITE(cps1_cps_a_w) AM_SHARE("cps_a_regs")   /* CPS-A custom */
649   AM_RANGE(0x800140, 0x80017f) AM_MIRROR(0x80) AM_READWRITE(cps1_cps_b_r, cps1_cps_b_w) AM_SHARE("cps_b_regs")   /* CPS-B custom */
650   AM_RANGE(0x800186, 0x800187) AM_READ(cps1_in2_r)            /* Buttons 4,5,6 for both players */
651   AM_RANGE(0x800190, 0x800197) AM_WRITE(cps1_soundlatch_w)    /* Sound command */
652   AM_RANGE(0x800198, 0x80019f) AM_WRITE(cps1_soundlatch2_w)   /* Sound timer fade */
653   AM_RANGE(0x8001a0, 0x8001bf) AM_WRITE(cps1_cps_a_w)
654   AM_RANGE(0x900000, 0x92ffff) AM_RAM_WRITE(cps1_gfxram_w) AM_SHARE("gfxram")
655   AM_RANGE(0xff0000, 0xffffff) AM_RAM
656ADDRESS_MAP_END
657
625658/***********************************************************
626659             INPUT PORTS, DIPs
627660***********************************************************/
r21869r21870
32763309   MCFG_EEPROM_ADD("eeprom", qsound_eeprom_interface)
32773310MACHINE_CONFIG_END
32783311
3312static MACHINE_CONFIG_DERIVED( sf2m3, cps1_12MHz)
3313   MCFG_CPU_MODIFY("maincpu")
3314   MCFG_CPU_PROGRAM_MAP(sf2m3_map)
3315MACHINE_CONFIG_END
32793316
3317
32803318/***************************************************************************
32813319
32823320  Game driver(s)
r21869r21870
85818619   ROMX_LOAD( "yyc-d",    0x200004, 0x80000, CRC(92a8b572) SHA1(cbad24e519f0152989764c054da914f55e2b118c), ROM_GROUPWORD | ROM_SKIP(6) )
85828620   ROM_CONTINUE(          0x200006, 0x80000)
85838621   ROMX_LOAD( "yyc-e",    0x400000, 0x80000, CRC(61138469) SHA1(dec3b3af6e3f4fedf51600ddf0515f61b2122493), ROM_GROUPWORD | ROM_SKIP(6) )
8584   ROM_CONTINUE(          0x400002, 0x80000)
8585   ROMX_LOAD( "yyc-f",    0x400004, 0x80000, CRC(b800dcdb) SHA1(2ec3251b78159b15032d55a5ee5138f159e67190), ROM_GROUPWORD | ROM_SKIP(6) )
8622   ROM_CONTINUE(          0x400004, 0x80000)
8623   ROMX_LOAD( "yyc-f",    0x400002, 0x80000, CRC(b800dcdb) SHA1(2ec3251b78159b15032d55a5ee5138f159e67190), ROM_GROUPWORD | ROM_SKIP(6) )
85868624   ROM_CONTINUE(          0x400006, 0x80000)
85878625   /* extra gfx layer roms loaded over the former ones to remove the capcom copyright logo */
85888626   ROMX_LOAD( "yyc-6.1",  0x400000, 0x10000, CRC(94778332) SHA1(c0b9a05c710b89864ee5df1a53b39de30c994e2d), ROM_SKIP(7) )
r21869r21870
1126911307GAME( 1992, sf2dkot2,    sf2ce,    cps1_12MHz, sf2,      cps_state,   cps1,     ROT0,   "bootleg", "Street Fighter II': Champion Edition (Double K.O. Turbo II, bootleg)", GAME_SUPPORTS_SAVE ) // 902140 !!! - based on USA version
1127011308GAME( 1992, sf2m1,       sf2ce,    cps1_12MHz, sf2,      cps_state,   cps1,     ROT0,   "bootleg", "Street Fighter II': Champion Edition (M1, bootleg)", GAME_NOT_WORKING | GAME_SUPPORTS_SAVE )
1127111309GAME( 1992, sf2m2,       sf2ce,    cps1_12MHz, sf2m2,    cps_state,   sf2hack,  ROT0,   "bootleg", "Street Fighter II': Champion Edition (M2, bootleg)", GAME_SUPPORTS_SAVE )               // 920313 - based on World version
11272GAME( 1992, sf2m3,       sf2ce,    cps1_12MHz, sf2,      cps_state,   cps1,     ROT0,   "bootleg", "Street Fighter II': Champion Edition (M3, bootleg)", GAME_NOT_WORKING | GAME_SUPPORTS_SAVE )
11310GAME( 1992, sf2m3,       sf2ce,    sf2m3,      sf2hack,  cps_state,   cps1,     ROT0,   "bootleg", "Street Fighter II': Champion Edition (M3, bootleg)", GAME_IMPERFECT_GRAPHICS | GAME_SUPPORTS_SAVE )
1127311311GAME( 1992, sf2m4,       sf2ce,    cps1_12MHz, sf2m4,    cps_state,   sf2hack,  ROT0,   "bootleg", "Street Fighter II': Champion Edition (M4, bootleg)", GAME_SUPPORTS_SAVE )               // 920322 - based on Japan version
1127411312GAME( 1992, sf2m5,       sf2ce,    cps1_12MHz, sf2hack,  cps_state,   sf2hack,  ROT0,   "bootleg", "Street Fighter II': Champion Edition (M5, bootleg)", GAME_SUPPORTS_SAVE )               // 920313 - based on World version
1127511313GAME( 1992, sf2m6,       sf2ce,    cps1_12MHz, sf2hack,  cps_state,   sf2hack,  ROT0,   "bootleg", "Street Fighter II': Champion Edition (M6, bootleg)", GAME_SUPPORTS_SAVE )               // 811102 !!! - based on World version
1127611314GAME( 1992, sf2m7,       sf2ce,    cps1_12MHz, sf2hack,  cps_state,   sf2hack,  ROT0,   "bootleg", "Street Fighter II': Champion Edition (M7, bootleg)", GAME_SUPPORTS_SAVE )               // 920313 - based on World version
11277GAME( 1992, sf2m8,       sf2ce,    cps1_12MHz, sf2hack,  cps_state,   sf2hack,  ROT0,   "bootleg", "Street Fighter II': Champion Edition (M8, bootleg)", GAME_NOT_WORKING | GAME_UNEMULATED_PROTECTION | GAME_SUPPORTS_SAVE )
11315GAME( 1992, sf2m8,       sf2ce,    sf2m3,      sf2hack,  cps_state,   sf2hack,  ROT0,   "bootleg", "Street Fighter II': Champion Edition (M8, bootleg)", GAME_NOT_WORKING | GAME_UNEMULATED_PROTECTION | GAME_SUPPORTS_SAVE )
1127811316GAME( 1992, sf2yyc,      sf2ce,    cps1_12MHz, sf2hack,  cps_state,   sf2hack,  ROT0,   "bootleg", "Street Fighter II': Champion Edition (YYC, bootleg)", GAME_SUPPORTS_SAVE )              // 920313 - based on World version
1127911317GAME( 1992, sf2koryu,    sf2ce,    cps1_12MHz, sf2hack,  cps_state,   sf2hack,  ROT0,   "bootleg", "Street Fighter II': Champion Edition (Xiang Long, Chinese bootleg)", GAME_SUPPORTS_SAVE )       // 811102 !!! - based on World version
11280GAME( 1992, sf2dongb,    sf2ce,    cps1_12MHz, sf2,      cps_state,   sf2dongb, ROT0,   "bootleg", "Street Fighter II': Champion Edition (Dongfang Bubai protection, bootleg)", GAME_NOT_WORKING | GAME_SUPPORTS_SAVE ) // 920313 - based on World version
11318GAME( 1992, sf2dongb,    sf2ce,    cps1_12MHz, sf2,      cps_state,   sf2dongb, ROT0,   "bootleg", "Street Fighter II': Champion Edition (Dongfang Bubai protection, bootleg)", GAME_SUPPORTS_SAVE ) // 920313 - based on World version
1128111319GAME( 1992, cworld2j,    0,        cps1_12MHz, cworld2j, cps_state,   cps1,     ROT0,   "Capcom", "Adventure Quiz Capcom World 2 (Japan 920611)", GAME_SUPPORTS_SAVE )
1128211320GAME( 1992, varth,       0,        cps1_12MHz, varth,    cps_state,   cps1,     ROT270, "Capcom", "Varth: Operation Thunderstorm (World 920714)", GAME_SUPPORTS_SAVE )  // "ETC"    // 12MHz verified
1128311321GAME( 1992, varthr1,     varth,    cps1_12MHz, varth,    cps_state,   cps1,     ROT270, "Capcom", "Varth: Operation Thunderstorm (World 920612)", GAME_SUPPORTS_SAVE )  // "ETC"

Previous 199869 Revisions Next


© 1997-2024 The MAME Team