Welcome!

General Emulation => MAME => Topic started by: emu on September 08, 2004, 06:08:25 AM

Title: nebula Romdata to mame driver ?
Post by: emu on September 08, 2004, 06:08:25 AM
nebula Romdata

GfxCrypt: 2
GfxKey: D
ButLayout: 9
Fix: 27

to mame driver ??? :confused:
Title: nebula Romdata to mame driver ?
Post by: iq_132 on September 09, 2004, 01:52:24 AM
Quote from: emu
nebula Romdata

GfxCrypt: 2
GfxKey: D
ButLayout: 9
Fix: 27

to mame driver ??? :confused:

is this what you're looking for?

Code: [Select]
DRIVER_INIT( samsh5sp )
{
UINT8 *src = memory_region(REGION_CPU1);
UINT8 *dst = malloc(0x800000);

int i;
unsigned int sec[]={0x0,0x1,0xA,0x9,0xC,0xB,0xE,0x5,0x2,0xD,0x8,0xF,0x4,0x7,0x6,0x3};
if (dst)
{
  memcpy(dst,src,0x800000);

for(i=0;i<0x10;i++)
{
  memcpy(src+i*0x80000,dst+sec[i]*0x80000,0x80000);
}
free(dst);
}

neogeo_fix_bank_type = 1;
kof2000_neogeo_gfx_decrypt(0x0d);
init_neogeo();
}