From 726914e8490d396f19a851204734a833295d3785 Mon Sep 17 00:00:00 2001 From: Barry Harris <44396066+barry65536@users.noreply.github.com> Date: Mon, 6 Jul 2015 19:42:59 +0000 Subject: [PATCH] punisher bootleg wip --- src/burn/drv/capcom/d_cps1.cpp | 57 ++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) diff --git a/src/burn/drv/capcom/d_cps1.cpp b/src/burn/drv/capcom/d_cps1.cpp index 9785b7f77..f6192ab60 100644 --- a/src/burn/drv/capcom/d_cps1.cpp +++ b/src/burn/drv/capcom/d_cps1.cpp @@ -7736,6 +7736,39 @@ static struct BurnRomInfo PunisherbzRomDesc[] = { STD_ROM_PICK(Punisherbz) STD_ROM_FN(Punisherbz) +static struct BurnRomInfo PunisherunkRomDesc[] = { + { "18.bin", 0x040000, 0x2565ad20, BRF_ESS | BRF_PRG | CPS1_68K_PROGRAM_BYTESWAP }, + { "19.bin", 0x040000, 0x84bb4acf, BRF_ESS | BRF_PRG | CPS1_68K_PROGRAM_BYTESWAP }, + { "16.bin", 0x040000, 0x4568520f, BRF_ESS | BRF_PRG | CPS1_68K_PROGRAM_BYTESWAP }, + { "17.bin", 0x040000, 0xfda67fc1, BRF_ESS | BRF_PRG | CPS1_68K_PROGRAM_BYTESWAP }, + { "14.bin", 0x020000, 0x1286d6ad, BRF_ESS | BRF_PRG | CPS1_68K_PROGRAM_BYTESWAP }, + { "12.bin", 0x020000, 0x019744d4, BRF_ESS | BRF_PRG | CPS1_68K_PROGRAM_BYTESWAP }, + { "15.bin", 0x020000, 0x092538ac, BRF_ESS | BRF_PRG | CPS1_68K_PROGRAM_BYTESWAP }, + { "13.bin", 0x020000, 0x8b88ae0d, BRF_ESS | BRF_PRG | CPS1_68K_PROGRAM_BYTESWAP }, + + { "1.bin", 0x080000, 0x35cb609a, BRF_GRA | CPS1_TILES }, + { "2.bin", 0x080000, 0xdcf61484, BRF_GRA | CPS1_TILES }, + { "3.bin", 0x080000, 0x3a76db83, BRF_GRA | CPS1_TILES }, + { "4.bin", 0x080000, 0xb099b669, BRF_GRA | CPS1_TILES }, + { "5.bin", 0x080000, 0x91365595, BRF_GRA | CPS1_TILES }, + { "6.bin", 0x080000, 0xb3cd4553, BRF_GRA | CPS1_TILES }, + { "7.bin", 0x080000, 0x3b940554, BRF_GRA | CPS1_TILES }, + { "8.bin", 0x080000, 0x43704b5a, BRF_GRA | CPS1_TILES }, + + { "11.bin", 0x010000, 0xd09d7c7a, BRF_PRG | CPS1_Z80_PROGRAM }, + + { "9.bin", 0x020000, 0xbbea1643, BRF_SND | CPS1_OKIM6295_SAMPLES }, + { "10.bin", 0x020000, 0xac58aa71, BRF_SND | CPS1_OKIM6295_SAMPLES }, + + { "pal1.jed", 0x000bd4, 0x22a9ff9e, BRF_OPT }, + { "pal2.jed", 0x000bd4, 0x8c4a97ac, BRF_OPT }, + { "pal3.jed", 0x000bd4, 0x0fdd5375, BRF_OPT }, + { "pal4.jed", 0x000bd4, 0xb2d16eac, BRF_OPT }, +}; + +STD_ROM_PICK(Punisherunk) +STD_ROM_FN(Punisherunk) + static struct BurnRomInfo QadRomDesc[] = { { "qdu_36a.12f", 0x020000, 0xde9c24a0, BRF_ESS | BRF_PRG | CPS1_68K_PROGRAM_BYTESWAP }, { "qdu_42a.12h", 0x020000, 0xcfe36f0c, BRF_ESS | BRF_PRG | CPS1_68K_PROGRAM_BYTESWAP }, @@ -12565,6 +12598,7 @@ static const struct GameConfig ConfigTable[] = { "punipic2" , CPS_B_21_QS3, mapper_PS63B , 0, NULL }, // game controls layers at 0x98000c { "punipic3" , CPS_B_21_QS3, mapper_PS63B , 0, NULL }, // game controls layers at 0x98000c { "punisherbz" , CPS_B_21_DEF, mapper_PS63B , 0, NULL }, + { "punisherunk" , CPS_B_21_QS3, mapper_PS63B , 0, NULL }, { "qad" , CPS_B_21_BT7, mapper_QD22B , 0, NULL }, { "qadjr" , CPS_B_21_DEF, mapper_QD63B , 0, NULL }, { "qtono2j" , CPS_B_21_DEF, mapper_TN2292, 0, NULL }, @@ -14621,6 +14655,19 @@ static INT32 Punipic3Init() return nRet; } +static INT32 PunisherunkInit() +{ + Cps1GfxLoadCallbackFunction = CpsLoadTilesWonder3b; + + INT32 nRet = TwelveMhzInit(); + +// SekOpen(0); + +// SekClose(); + + return nRet; +} + static INT32 QadInit() { Cps1DisableBgHi = 1; @@ -17978,6 +18025,16 @@ struct BurnDriver BurnDrvCpsPunisherbz = { &CpsRecalcPal, 0x1000, 384, 224, 4, 3 }; +struct BurnDriverD BurnDrvCpsPunisherunk = { + "punisherunk", "punisher", NULL, NULL, "1993", + "Punisher (Unknown)\0", NULL, "bootleg", "CPS1", + NULL, NULL, NULL, NULL, + BDF_CLONE | BDF_BOOTLEG, 2, HARDWARE_CAPCOM_CPS1, GBF_SCRFIGHT, 0, + NULL, PunisherunkRomInfo, PunisherunkRomName, NULL, NULL, PunisherInputInfo, PunisherDIPInfo, + PunisherunkInit, DrvExit, Cps1Frame, CpsRedraw, CpsAreaScan, + &CpsRecalcPal, 0x1000, 384, 224, 4, 3 +}; + struct BurnDriver BurnDrvCpsQad = { "qad", NULL, NULL, NULL, "1992", "Quiz & Dragons (capcom quiz game 920701 USA)\0", NULL, "Capcom", "CPS1",