Core/burn/drv/toaplan/d_demonwld.cpp
// Hack to bypass the missing sub-cpu.  All games except the taito
// set check the crc and rather than dealing with that, I'm seperating
// the opcodes and data and just patching the opcodes. 
// Taito set patches from MAME 0.36b10.
Hack to bypass the missing sub-cpu.  All games except the taito
set check the crc and rather than dealing with that, I'm seperating
the opcodes and data and just patching the opcodes.
Taito set patches from MAME 0.36b10.
Hack to bypass the missing sub - cpu . All games except the taito set check the crc and rather than dealing with that I ' m seperating the opcodes and data and just patching the opcodes . Taito set patches from MAME 0 . 36b10 .
static void map_hack(INT32 hack_off)
{
	INT32 cpy_off = hack_off & ~0x3ff;
	memcpy (Drv68KROM + 0x40000, Drv68KROM + cpy_off, 0x400);
	hack_off -= cpy_off;
	hack_off += 0x40000;
	*((UINT16*)(Drv68KROM + hack_off + 0)) = 0x4e71;
	*((UINT16*)(Drv68KROM + hack_off + 8)) = 0x600a;
	SekOpen(0);
	SekMapMemory(Drv68KROM + 0x40000, cpy_off, cpy_off + 0x3ff, SM_FETCH);
	SekClose();
}
static void map_hack ( INT32 hack_off ) { INT32 cpy_off = hack_off & ~ 0x3ff ; memcpy ( Drv68KROM + 0x40000 , Drv68KROM + cpy_off , 0x400 ) ; hack_off -= cpy_off ; hack_off += 0x40000 ; * ( ( UINT16 * ) ( Drv68KROM + hack_off + 0 ) ) = 0x4e71 ; * ( ( UINT16 * ) ( Drv68KROM + hack_off + 8 ) ) = 0x600a ; SekOpen ( 0 ) ; SekMapMemory ( Drv68KROM + 0x40000 , cpy_off , cpy_off + 0x3ff , SM_FETCH ) ; SekClose ( ) ; }
Hack to bypass the missing sub-cpu.
Hack to bypass the missing sub - cpu .