Author Topic: nebula Romdata to mame driver ?  (Read 3621 times)

Offline emu

  • Newbies
  • *
  • Posts: 12
  • Karma: +0/-0
  • Junior Member
nebula Romdata to mame driver ?
« on: September 08, 2004, 06:08:25 AM »
nebula Romdata

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

to mame driver ??? :confused:

Offline iq_132

  • Administrator
  • *****
  • Posts: 3612
  • Karma: +385/-0
  • Bare Knuckle!
    • NeoSource
nebula Romdata to mame driver ?
« Reply #1 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();
}
« Last Edit: May 10, 2005, 01:25:59 PM by iq_132 »