Exemplo n.º 1
0
DRIVER_INIT_MEMBER(pbaction_state,pbactio3)
{
	int i;
	UINT8 *rom = machine().root_device().memregion("maincpu")->base();

	/* first of all, do a simple bitswap */
	for (i = 0; i < 0xc000; i++)
	{
		rom[i] = BITSWAP8(rom[i], 7,6,5,4,1,2,3,0);
	}

	/* then do the standard Sega decryption */
	pbaction_decode(machine(), "maincpu");

	/* install a protection (?) workaround */
	machine().device("maincpu")->memory().space(AS_PROGRAM).install_read_handler(0xc000, 0xc000, read8_delegate(FUNC(pbaction_state::pbactio3_prot_kludge_r),this) );
}
Exemplo n.º 2
0
static DRIVER_INIT( pbactio3 )
{
    int i;
    UINT8 *rom = machine.region("maincpu")->base();

    /* first of all, do a simple bitswap */
    for (i = 0; i < 0xc000; i++)
    {
        rom[i] = BITSWAP8(rom[i], 7,6,5,4,1,2,3,0);
    }

    /* then do the standard Sega decryption */
    pbaction_decode(machine, "maincpu");

    /* install a protection (?) workaround */
    machine.device("maincpu")->memory().space(AS_PROGRAM)->install_legacy_read_handler(0xc000, 0xc000, FUNC(pbactio3_prot_kludge_r) );
}
Exemplo n.º 3
0
static DRIVER_INIT( pbactio3 )
{
	int i;
	UINT8 *rom = memory_region(REGION_CPU1);

	/* first of all, do a simple bitswap */
	for (i = 0;i < 0xc000;i++)
	{
		rom[i] = BITSWAP8(rom[i], 7,6,5,4,1,2,3,0);
	}

	/* then do the standard Sega decryption */
	pbaction_decode();

	/* install a protection (?) workaround */
	memory_install_read8_handler(0, ADDRESS_SPACE_PROGRAM, 0xc000, 0xc000, 0, 0, pbactio3_prot_kludge_r );
}
Exemplo n.º 4
0
static DRIVER_INIT( pbactio3 )
{
	int i;
	UINT8 *rom = machine->region("maincpu")->base();

	/* first of all, do a simple bitswap */
	for (i = 0; i < 0xc000; i++)
	{
		rom[i] = BITSWAP8(rom[i], 7,6,5,4,1,2,3,0);
	}

	/* then do the standard Sega decryption */
	pbaction_decode(machine, "maincpu");

	/* install a protection (?) workaround */
	memory_install_read8_handler(cputag_get_address_space(machine, "maincpu", ADDRESS_SPACE_PROGRAM), 0xc000, 0xc000, 0, 0, pbactio3_prot_kludge_r );
}
Exemplo n.º 5
0
static DRIVER_INIT( pbactio4 )
{
	/* this one only has the Sega decryption */
	pbaction_decode(machine, "maincpu");
}
Exemplo n.º 6
0
DRIVER_INIT_MEMBER(pbaction_state,pbactio4)
{
	/* this one only has the Sega decryption */
	pbaction_decode(machine(), "maincpu");
}