fix bounty2 slightly different

This commit is contained in:
dinkc64 2018-09-06 04:30:28 +00:00
parent 5e8d167d78
commit d66ae04651

View File

@ -1012,6 +1012,11 @@ static struct BurnRomInfo bounty2RomDesc[] = {
{ "mb7051.2a", 0x0020, 0x0de11a46, 4 | BRF_GRA }, // 9 Color Data
{ "mb7051.2b", 0x0020, 0x465e31d4, 4 | BRF_GRA }, // 10
// NOTE: data is needed from the parent's main rom which is missing in this set.
// The missing data is held in battery-backed sram inside an epoxy block z80 module.
// 0-ff hex is mapped to the sram using 74series logic.
{ "1.4f_parent", 0x1000, 0xf495b19d, 7 | BRF_PRG | BRF_ESS }, // 11 Z80 #0 Code
};
STD_ROM_PICK(bounty2)
@ -1019,37 +1024,16 @@ STD_ROM_FN(bounty2)
static INT32 Bounty2Init()
{
// The first 0x100 bytes is either encrypted or has an overlay over it with the correct
// data. Patch this in from the parent.
static const UINT8 data[256] = {
0x40, 0x49, 0xED, 0x56, 0xC3, 0xF7, 0x3A, 0x0B, 0xE5, 0xD5, 0xC5, 0xC3, 0x89, 0x02, 0x0B, 0x2A,
0xF5, 0xE5, 0xD5, 0xC5, 0xC3, 0xCB, 0x02, 0x32, 0x22, 0x11, 0x58, 0xC3, 0x4D, 0x01, 0xB1, 0x36,
0xF5, 0xE5, 0xD5, 0xC5, 0xC3, 0xE0, 0x02, 0x0B, 0xF5, 0xE5, 0xD5, 0xC5, 0xC3, 0x03, 0x03, 0x5E,
0xF5, 0xE5, 0xD5, 0xC5, 0xC3, 0x0C, 0x03, 0x0B, 0xC3, 0x28, 0x01, 0x04, 0x05, 0xC5, 0x59, 0x03,
0x10, 0x05, 0x5A, 0x02, 0x0B, 0xB9, 0x59, 0x01, 0x03, 0xE1, 0x59, 0x02, 0x09, 0xD5, 0x59, 0x01,
0x02, 0xDD, 0x59, 0x01, 0x13, 0xC1, 0x59, 0x01, 0x0D, 0xB5, 0x59, 0x4F, 0x52, 0x43, 0x41, 0x20,
0x4C, 0x54, 0x44, 0x2E, 0x20, 0x20, 0xC3, 0x87, 0x00, 0xC3, 0xCD, 0x01, 0xC3, 0xF6, 0x01, 0xC3,
0x5B, 0x02, 0xC3, 0x38, 0x03, 0xC3, 0xD6, 0x03, 0xC3, 0x02, 0x04, 0xC3, 0x13, 0x04, 0xC3, 0x41,
0x04, 0xC3, 0x60, 0x04, 0xC3, 0x9E, 0x04, 0xF5, 0xC5, 0xD5, 0xE5, 0xFD, 0xE5, 0xDD, 0xE5, 0x3E,
0x01, 0x32, 0x00, 0x71, 0x3A, 0x18, 0x58, 0xFE, 0xFF, 0xC2, 0x11, 0x01, 0x21, 0x04, 0x58, 0x3A,
0x84, 0x60, 0xCB, 0x4F, 0x28, 0x04, 0x36, 0x01, 0x18, 0x14, 0x7E, 0x36, 0x00, 0xB7, 0x28, 0x0E,
0x2B, 0x7E, 0x3C, 0x3C, 0xFE, 0xC8, 0x30, 0x06, 0x77, 0x3E, 0x06, 0xCD, 0x81, 0x00, 0xCD, 0x7B,
0x01, 0x2A, 0x11, 0x58, 0x7C, 0xB5, 0x28, 0x04, 0x2B, 0x22, 0x11, 0x58, 0x21, 0x16, 0x58, 0x35,
0x3E, 0x18, 0x86, 0x20, 0x3C, 0x77, 0x11, 0x19, 0x58, 0xEB, 0xCB, 0x7E, 0x20, 0x30, 0x23, 0x3E,
0x05, 0xBE, 0x20, 0x2A, 0x13, 0x1A, 0xEE, 0x01, 0x12, 0x20, 0x15, 0x3A, 0x1B, 0x58, 0xCB, 0x77,
0x20, 0x07, 0x3E, 0x12, 0xCD, 0x95, 0x0A, 0x18, 0x15, 0x3E, 0x13, 0xCD, 0x95, 0x0A, 0x18, 0x0E
};
percuss = 1;
INT32 nRet = DrvInit();
if (nRet == 0)
{
UINT8 *data = (UINT8*)BurnMalloc(0x1000);
if (BurnLoadRom(data, 11, 1)) { BurnFree(data); return 1; }
memcpy (DrvZ80ROM0, data, 0x100);
ZetOpen(0); // catch vectors
ZetReset();
ZetClose();
BurnFree(data);
}
return nRet;