diff options
Diffstat (limited to 'src/mame/drivers/glass.c')
-rw-r--r-- | src/mame/drivers/glass.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mame/drivers/glass.c b/src/mame/drivers/glass.c index 65c07c97db8..d0f1850b195 100644 --- a/src/mame/drivers/glass.c +++ b/src/mame/drivers/glass.c @@ -284,15 +284,15 @@ ROM_END ***************************************************************************/ -static void glass_ROM16_split_gfx( running_machine &machine, const char *src_reg, const char *dst_reg, int start, int length, int dest1, int dest2 ) +void glass_state::glass_ROM16_split_gfx( const char *src_reg, const char *dst_reg, int start, int length, int dest1, int dest2 ) { int i; /* get a pointer to the source data */ - UINT8 *src = (UINT8 *)machine.root_device().memregion(src_reg)->base(); + UINT8 *src = (UINT8 *)machine().root_device().memregion(src_reg)->base(); /* get a pointer to the destination data */ - UINT8 *dst = (UINT8 *)machine.root_device().memregion(dst_reg)->base(); + UINT8 *dst = (UINT8 *)machine().root_device().memregion(dst_reg)->base(); /* fill destination areas with the proper data */ for (i = 0; i < length / 2; i++) @@ -404,10 +404,10 @@ DRIVER_INIT_MEMBER(glass_state,glass) */ /* split ROM H13 */ - glass_ROM16_split_gfx(machine(), "gfx2", "gfx1", 0x0000000, 0x0200000, 0x0000000, 0x0100000); + glass_ROM16_split_gfx("gfx2", "gfx1", 0x0000000, 0x0200000, 0x0000000, 0x0100000); /* split ROM H11 */ - glass_ROM16_split_gfx(machine(), "gfx2", "gfx1", 0x0200000, 0x0200000, 0x0200000, 0x0300000); + glass_ROM16_split_gfx("gfx2", "gfx1", 0x0200000, 0x0200000, 0x0200000, 0x0300000); /* install custom handler over RAM for protection */ machine().device("maincpu")->memory().space(AS_PROGRAM).install_readwrite_handler(0xfec000, 0xfeffff, read16_delegate(FUNC(glass_state::glass_mainram_r), this), write16_delegate(FUNC(glass_state::glass_mainram_w),this)); |