d_ghox.cpp: new clone added - Ghox (joystick, older) [caius]

This commit is contained in:
jackchatelet 2018-03-10 12:50:37 +00:00
parent 36309cb9de
commit c02d9de6d9
1 changed files with 120 additions and 4 deletions

View File

@ -124,7 +124,7 @@ static struct BurnDIPInfo GhoxDIPList[]=
{0x14, 0x01, 0x80, 0x00, "Off" },
{0x14, 0x01, 0x80, 0x80, "On" },
{0 , 0xfe, 0 , 14, "Region" },
{0 , 0xfe, 0 , 16, "Region" },
{0x15, 0x01, 0x0f, 0x02, "Europe" },
{0x15, 0x01, 0x0f, 0x0a, "Europe (Nova Apparate GMBH & Co)" },
{0x15, 0x01, 0x0f, 0x0d, "Europe (Taito Corporation Japan)" },
@ -133,16 +133,106 @@ static struct BurnDIPInfo GhoxDIPList[]=
{0x15, 0x01, 0x0f, 0x0b, "USA (Taito America Corporation)" },
{0x15, 0x01, 0x0f, 0x0c, "USA (Taito Corporation Japan)" },
{0x15, 0x01, 0x0f, 0x00, "Japan" },
{0x15, 0x01, 0x0f, 0x0e, "Japan (Licensed to [blank]" },
{0x15, 0x01, 0x0f, 0x0f, "Japan (Taito Corporation)" },
{0x15, 0x01, 0x0f, 0x04, "Korea" },
{0x15, 0x01, 0x0f, 0x03, "Hong Kong (Honest Trading Co.)" },
{0x15, 0x01, 0x0f, 0x05, "Taiwan" },
{0x15, 0x01, 0x0f, 0x06, "Spain & Portugal (APM Electronics SA)" },
{0x15, 0x01, 0x0f, 0x07, "Italy (Star Electronica SRL)" },
{0x15, 0x01, 0x0f, 0x08, "UK (JP Leisure Ltd)" },
{0x15, 0x01, 0x0f, 0x08, "UK (JP Leisure Limited)" },
};
STDDIPINFO(Ghox)
static struct BurnDIPInfo GhoxjoDIPList[]=
{
{0x13, 0xff, 0xff, 0x00, NULL },
{0x14, 0xff, 0xff, 0x00, NULL },
{0x15, 0xff, 0xff, 0xf2, NULL },
{0 , 0xfe, 0 , 2, "Unused" },
{0x13, 0x01, 0x01, 0x00, "Off" },
{0x13, 0x01, 0x01, 0x01, "On" },
{0 , 0xfe, 0 , 2, "Flip Screen" },
{0x13, 0x01, 0x02, 0x00, "Off" },
{0x13, 0x01, 0x02, 0x02, "On" },
{0 , 0xfe, 0 , 2, "Service Mode" },
{0x13, 0x01, 0x04, 0x00, "Off" },
{0x13, 0x01, 0x04, 0x04, "On" },
{0 , 0xfe, 0 , 2, "Demo Sounds" },
{0x13, 0x01, 0x08, 0x08, "Off" },
{0x13, 0x01, 0x08, 0x00, "On" },
{0 , 0xfe, 0 , 7, "Coin A" },
{0x13, 0x01, 0x30, 0x30, "4 Coins 1 Credits" },
{0x13, 0x01, 0x30, 0x20, "3 Coins 1 Credits" },
{0x13, 0x01, 0x30, 0x10, "2 Coins 1 Credits" },
{0x13, 0x01, 0x30, 0x20, "2 Coins 1 Credits" },
{0x13, 0x01, 0x30, 0x00, "1 Coin 1 Credits" },
{0x13, 0x01, 0x30, 0x30, "2 Coins 3 Credits" },
{0x13, 0x01, 0x30, 0x10, "1 Coin 2 Credits" },
{0 , 0xfe, 0 , 8, "Coin B" },
{0x13, 0x01, 0xc0, 0x80, "2 Coins 1 Credits" },
{0x13, 0x01, 0xc0, 0x00, "1 Coin 1 Credits" },
{0x13, 0x01, 0xc0, 0xc0, "2 Coins 3 Credits" },
{0x13, 0x01, 0xc0, 0x40, "1 Coin 2 Credits" },
{0x13, 0x01, 0xc0, 0x00, "1 Coin 2 Credits" },
{0x13, 0x01, 0xc0, 0x40, "1 Coin 3 Credits" },
{0x13, 0x01, 0xc0, 0x80, "1 Coin 4 Credits" },
{0x13, 0x01, 0xc0, 0xc0, "1 Coin 6 Credits" },
{0 , 0xfe, 0 , 4, "Difficulty" },
{0x14, 0x01, 0x03, 0x03, "Hardest" },
{0x14, 0x01, 0x03, 0x02, "Hard" },
{0x14, 0x01, 0x03, 0x00, "Normal" },
{0x14, 0x01, 0x03, 0x01, "Easy" },
{0 , 0xfe, 0 , 4, "Bonus Life" },
{0x14, 0x01, 0x0c, 0x0c, "None" },
{0x14, 0x01, 0x0c, 0x08, "100k only" },
{0x14, 0x01, 0x0c, 0x04, "100k and 300k" },
{0x14, 0x01, 0x0c, 0x00, "100k and every 200k" },
{0 , 0xfe, 0 , 4, "Lives" },
{0x14, 0x01, 0x30, 0x30, "1" },
{0x14, 0x01, 0x30, 0x20, "2" },
{0x14, 0x01, 0x30, 0x00, "3" },
{0x14, 0x01, 0x30, 0x10, "5" },
{0 , 0xfe, 0 , 2, "Invulnerability" },
{0x14, 0x01, 0x40, 0x00, "Off" },
{0x14, 0x01, 0x40, 0x40, "On" },
{0 , 0xfe, 0 , 2, "Unused" },
{0x14, 0x01, 0x80, 0x00, "Off" },
{0x14, 0x01, 0x80, 0x80, "On" },
{0 , 0xfe, 0 , 16, "Region" },
{0x15, 0x01, 0x0f, 0x02, "Europe" },
{0x15, 0x01, 0x0f, 0x0a, "Europe (Nova Apparate GMBH & Co)" },
{0x15, 0x01, 0x0f, 0x0d, "Japan (Unused) [d]" },
{0x15, 0x01, 0x0f, 0x01, "USA" },
{0x15, 0x01, 0x0f, 0x09, "USA (Romstar)" },
{0x15, 0x01, 0x0f, 0x0b, "Japan (Unused) [b]" },
{0x15, 0x01, 0x0f, 0x0c, "Japan (Unused) [c]" },
{0x15, 0x01, 0x0f, 0x00, "Japan" },
{0x15, 0x01, 0x0f, 0x0e, "Japan (Unused) [e]" },
{0x15, 0x01, 0x0f, 0x0f, "Japan (Unused) [f]" },
{0x15, 0x01, 0x0f, 0x04, "Korea" },
{0x15, 0x01, 0x0f, 0x03, "Hong Kong (Honest Trading Co.)" },
{0x15, 0x01, 0x0f, 0x05, "Taiwan" },
{0x15, 0x01, 0x0f, 0x06, "Spain & Portugal (APM Electronics SA)" },
{0x15, 0x01, 0x0f, 0x07, "Italy (Star Electronica SRL)" },
{0x15, 0x01, 0x0f, 0x08, "UK (JP Leisure Limited)" },
};
STDDIPINFO(Ghoxjo)
// This routine is called first to determine how much memory is needed (MemEnd-(UINT8 *)0),
// and then afterwards to set up all the pointers
static INT32 MemIndex()
@ -611,7 +701,7 @@ static struct BurnRomInfo ghoxRomDesc[] = {
{ "tp021-03.u36", 0x80000, 0xa15d8e9d, BRF_GRA }, // 2 GP9001 Tile data
{ "tp021-04.u37", 0x80000, 0x26ed1c9a, BRF_GRA }, // 3
{ "hd647180.021", 0x08000, 0x6ab59e5b, BRF_PRG | BRF_ESS }, // 4 CPU #1 code
{ "hd647180.021", 0x08000, 0x6ab59e5b, BRF_PRG | BRF_ESS }, // 4 CPU #1 code
};
STD_ROM_PICK(ghox)
@ -637,7 +727,7 @@ static struct BurnRomInfo ghoxjRomDesc[] = {
{ "tp021-03.u36", 0x80000, 0xa15d8e9d, BRF_GRA }, // 2 GP9001 Tile data
{ "tp021-04.u37", 0x80000, 0x26ed1c9a, BRF_GRA }, // 3
{ "hd647180.021", 0x08000, 0x6ab59e5b, BRF_PRG | BRF_ESS }, // 4 CPU #1 code
{ "hd647180.021", 0x08000, 0x6ab59e5b, BRF_PRG | BRF_ESS }, // 4 CPU #1 code
};
STD_ROM_PICK(ghoxj)
@ -652,3 +742,29 @@ struct BurnDriver BurnDrvGhoxj = {
DrvInit, DrvExit, DrvFrame, DrvDraw, DrvScan, &ToaRecalcPalette, 0x800,
240, 320, 3, 4
};
// Ghox (joystick, older)
static struct BurnRomInfo ghoxjoRomDesc[] = {
{ "tp021-01.ghoxsticker.u10", 0x20000, 0xad3a8817, BRF_PRG | BRF_ESS }, // 0 CPU #0 code
{ "tp021-02.ghoxsticker.u11", 0x20000, 0x2340e981, BRF_PRG | BRF_ESS }, // 1
{ "tp021-03.u36", 0x80000, 0xa15d8e9d, BRF_GRA }, // 2 GP9001 Tile data
{ "tp021-04.u37", 0x80000, 0x26ed1c9a, BRF_GRA }, // 3
{ "hd647180.021", 0x08000, 0x6ab59e5b, BRF_PRG | BRF_ESS }, // 4 CPU #1 code
};
STD_ROM_PICK(ghoxjo)
STD_ROM_FN(ghoxjo)
struct BurnDriver BurnDrvGhoxjo = {
"ghoxjo", "ghox", NULL, NULL, "1991",
"Ghox (joystick, older)\0", NULL, "Toaplan", "Toaplan GP9001 based",
NULL, NULL, NULL, NULL,
BDF_GAME_WORKING | BDF_CLONE | BDF_ORIENTATION_VERTICAL | BDF_HISCORE_SUPPORTED, 2, HARDWARE_TOAPLAN_68K_Zx80, GBF_BREAKOUT, 0,
NULL, ghoxjoRomInfo, ghoxjoRomName, NULL, NULL, GhoxInputInfo, GhoxjoDIPInfo,
DrvInit, DrvExit, DrvFrame, DrvDraw, DrvScan, &ToaRecalcPalette, 0x800,
240, 320, 3, 4
};