// FBA Conversion by JiMMy_PaGe (www.neofighters.com.br) original code by Harin
static void samsh5bl_px_decrypt( )
{
int rom_size = 0x800000;
UINT8 *src = Neo68KROM01;
UINT8 *dst = (UINT8*)malloc( rom_size );
int i;
int ofst;
memcpy( dst, src, rom_size );
for( i = 0; i < rom_size / 2; i++ ){
ofst = BITSWAP08( (i & 0x000ff), 7, 6, 5, 4, 3, 0, 1, 2 );
ofst += (i & 0xfffff00);
ofst ^= 0x060005;
memcpy( &src[ i * 2 ], &dst[ ofst * 2 ], 0x02 );
}
memcpy(dst, src, 0x300000);
memcpy(src, src+0x300000, 0x500000);
memcpy(src+0x500000, dst, 0x300000);
free( dst );
}