Final Burn Neo > FBN Development

Street Fighter II' C.E. (r 1.3) [sfce13] driver

(1/1)

iq_132:

--- Code: ---//==============================
// Street Fighter II' H.F. (rev. 1.3) Init
//==============================

static int sfce13Init()
{
int nRet=0;
Cps=1; Sf2Hack=1;
nCpsRomLen =2*0x080000 + 2*0x020000;
nCpsGfxLen =3*0x200000;
nCpsZRomLen=  0x010000;
nCpsAdLen  =2*0x020000;

nCPS68KClockspeed = 7000000;
nRet=CpsInit(); if (nRet!=0) return 1;

// Load program roms
nRet=BurnLoadRom(CpsRom + 0x000000, 0, 2); if (nRet!=0) return 1;
nRet=BurnLoadRom(CpsRom + 0x000001, 1, 2); if (nRet!=0) return 1;
nRet=BurnLoadRom(CpsRom + 0x100000, 2, 2); if (nRet!=0) return 1;
nRet=BurnLoadRom(CpsRom + 0x100001, 3, 2); if (nRet!=0) return 1;

BurnByteswap(CpsRom, 2*0x080000 + 2*0x020000);

// Load up and interleve each set of 4 roms to make the 16x16 tiles
CpsLoadTiles(CpsGfx+0x000000, 4+0*4);
CpsLoadTiles(CpsGfx+0x200000, 4+1*4);
CpsLoadTiles(CpsGfx+0x400000, 4+2*4);

nCpsGfxScroll[1]=nCpsGfxScroll[2]=nCpsGfxScroll[3]=0x400000; // Offset to Scroll tiles

nCpsLcReg=0x70;
MaskAddr[0]=0x66;

CpsRom[0x1D22A] = 0x20; // Fix scroll (24)

// Load Z80 Rom
nRet=BurnLoadRom(CpsZRom      , 16, 1);

// Load ADPCM data
nRet=BurnLoadRom(CpsAd        , 17, 1);
nRet=BurnLoadRom(CpsAd+0x20000, 18, 1);

nRet=CpsRunInit();
if (nRet!=0) return 1;

// Ready to go
return 0;
}

//==============================================
//Street Fighter II' - Hyper Fighting (1.3)
//==============================================

static struct BurnRomInfo sfce13RomDesc[] = {
{ "222-040.13"  , 0x080000, 0xec6f5cb3, BRF_ESS | BRF_PRG }, // 0
{ "196-040.13"  , 0x080000, 0x0e9ac52b, BRF_ESS | BRF_PRG }, // 1
{ "221-010.13"  , 0x020000, 0x8226c11c, BRF_ESS | BRF_PRG }, // 2
{ "195-010.13"  , 0x020000, 0x924c6ce2, BRF_ESS | BRF_PRG }, // 3

{ "s92_01.bin",   0x080000, 0x03b0d852, BRF_GRA }, // 4
{ "s92_02.bin",   0x080000, 0x840289ec, BRF_GRA },
{ "s92_03.bin",   0x080000, 0xcdb5f027, BRF_GRA },
{ "s92_04.bin",   0x080000, 0xe2799472, BRF_GRA },

{ "s92_05.bin",   0x080000, 0xba8a2761, BRF_GRA }, // 8
{ "s92_06.bin",   0x080000, 0xe584bfb5, BRF_GRA },
{ "s92_07.bin",   0x080000, 0x21e3f87d, BRF_GRA },
{ "s92_08.bin",   0x080000, 0xbefc47df, BRF_GRA },

{ "s2t_10.bin"   ,0x80000,0x3c042686,   BRF_GRA },
{ "s2t_11.bin"   ,0x80000,0x8b7e7183,   BRF_GRA },
{ "s2t_12.bin"   ,0x80000,0x293c888c,   BRF_GRA },
{ "s2t_13.bin"   ,0x80000,0x842b35a4,   BRF_GRA },

{ "s92_09.bin",   0x010000, 0x08f6b60e, BRF_SND }, // 16

{ "s92_18.bin",   0x020000, 0x7f162009, BRF_SND }, // 17
{ "s92_19.bin",   0x020000, 0xbeade53f, BRF_SND }, // 18
};

// Make The RomInfo/Name functions for the game
STD_ROM_PICK(sfce13) STD_ROM_FN(sfce13)

struct BurnDriver BurnDrvCpssfce13 = {
"sfce13", "sf2hf", NULL, "1992",
"Street Fighter II' - hyper fighting (921209 Japan) (1.3)\0", "Very Minor Gfx Problems", "Capcom", "CPS1",
NULL, NULL, NULL, NULL,
BDF_GAME_WORKING | BDF_CLONE | BDF_BOOTLEG,2,HARDWARE_CAPCOM_CPS1,
NULL,sfce13RomInfo,sfce13RomName,Sf2yycInputInfo, sf2ceDIPInfo,
sfce13Init,DrvExit,Cps1Frame,CpsRedraw,CpsAreaScan,
&CpsRecalcPal,384,224,4,3
};

--- End code ---

James33:
Thanks for the info IQ :)

KOF2112:
 :smilie:

Thanks You iq_132

iq_132:
Updated! Only one patch now. :)

Navigation

[0] Message Index

Go to full version