diff options
Diffstat (limited to 'src/mame/machine/theglobp.c')
-rw-r--r-- | src/mame/machine/theglobp.c | 24 |
1 files changed, 11 insertions, 13 deletions
diff --git a/src/mame/machine/theglobp.c b/src/mame/machine/theglobp.c index f9c32fc9958..0e308dabee3 100644 --- a/src/mame/machine/theglobp.c +++ b/src/mame/machine/theglobp.c @@ -231,29 +231,27 @@ READ8_HANDLER( theglobp_decrypt_rom ) } -MACHINE_START( theglobp ) +MACHINE_START_MEMBER(pacman_state,theglobp) { - pacman_state *state = machine.driver_data<pacman_state>(); - UINT8 *RAM = state->memregion("maincpu")->base(); + UINT8 *RAM = memregion("maincpu")->base(); /* While the PAL supports up to 16 decryption methods, only four are actually used in the PAL. Therefore, we'll take a little memory overhead and decrypt the ROMs using each method in advance. */ - theglobp_decrypt_rom_8(machine); - theglobp_decrypt_rom_9(machine); - theglobp_decrypt_rom_A(machine); - theglobp_decrypt_rom_B(machine); + theglobp_decrypt_rom_8(machine()); + theglobp_decrypt_rom_9(machine()); + theglobp_decrypt_rom_A(machine()); + theglobp_decrypt_rom_B(machine()); - state->membank("bank1")->configure_entries(0, 4, &RAM[0x10000], 0x4000); + membank("bank1")->configure_entries(0, 4, &RAM[0x10000], 0x4000); - state_save_register_global(machine, state->m_counter); + state_save_register_global(machine(), m_counter); } -MACHINE_RESET( theglobp ) +MACHINE_RESET_MEMBER(pacman_state,theglobp) { - pacman_state *state = machine.driver_data<pacman_state>(); /* The initial state of the counter is 0x0A */ - state->m_counter = 0x0A; - state->membank("bank1")->set_entry(2); + m_counter = 0x0A; + membank("bank1")->set_entry(2); } |