void systeme_state::driver_start() { /* Allocate video RAM */ m_vdp1_vram = machine().memory().region_alloc("vdp1_vram", 2 * 0x4000, 1, ENDIANNESS_LITTLE); m_vdp2_vram = machine().memory().region_alloc("vdp2_vram", 2 * 0x4000, 1, ENDIANNESS_LITTLE); membank("bank1")->configure_entries(0, 16, memregion("maincpu")->base() + 0x10000, 0x4000); if ( !strcmp( system().name, "ridleofp" ) ) { m_maincpu->memory().space(AS_IO)->install_read_handler(0xf8, 0xf8, read8_delegate(FUNC(systeme_state::ridleofp_port_f8_read), this)); m_maincpu->memory().space(AS_IO)->install_write_handler(0xfa, 0xfa, write8_delegate(FUNC(systeme_state::ridleofp_port_fa_write), this)); } else if ( !strcmp( system().name, "hangonjr" ) ) { m_maincpu->memory().space(AS_IO)->install_read_handler(0xf8, 0xf8, read8_delegate(FUNC(systeme_state::hangonjr_port_f8_read), this)); m_maincpu->memory().space(AS_IO)->install_write_handler(0xfa, 0xfa, write8_delegate(FUNC(systeme_state::hangonjr_port_fa_write), this)); } else if ( !strcmp( system().name, "opaopa" ) ) { mc8123_decrypt_rom(machine(), "maincpu", "user1", "bank1", 8); } else if ( !strcmp( system().name, "fantzn2" ) ) { mc8123_decrypt_rom(machine(), "maincpu", "user1", NULL, 0); } else if ( !strcmp( system().name, "astrofl" ) ) { sega_315_5177_decode(machine(), "maincpu"); } }
static DRIVER_INIT( pbillrds ) { mc8123_decrypt_rom(0, memory_region(REGION_USER1), 1, 2); }
static DRIVER_INIT( gigas ) { mc8123_decrypt_rom(machine, "maincpu", "user1", NULL, 1); }
static DRIVER_INIT( pbillrds ) { mc8123_decrypt_rom(machine, "maincpu", "user1", "bank1", 2); }
void opaopa_state::driver_start() { systeme_state::driver_start(); mc8123_decrypt_rom(machine(), "maincpu", "user1", "bank1", 8); }
void fantzn2_state::driver_start() { systeme_state::driver_start(); mc8123_decrypt_rom(machine(), "maincpu", "user1", NULL, 0); }