summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/video/superqix.c
diff options
context:
space:
mode:
author Aaron Giles <aaron@aarongiles.com>2008-03-05 07:45:34 +0000
committer Aaron Giles <aaron@aarongiles.com>2008-03-05 07:45:34 +0000
commitee0a5642ab9019f040132a2087872d87e3ddf026 (patch)
tree60614d661eb04699242798e5965b9c732dfd5bd5 /src/mame/video/superqix.c
parent9f03451a61e6d5541035462cd32c1f88eb68e9a5 (diff)
Added running_machine * parameter to the front of all read/write handlers.
Updated all call-through handlers appropriately. Renamed read8_handler to read8_machine_func, replicating this pattern throughout. Defined new set of memory handler functions which are similar but which pass a const device_config * in place of the running_machine *. These are called read8_device_func, etc. Added macros READ8_DEVICE_HANDLER() for specifying functions of this type. Note that some plumbing still needs to happen in memory.c before this will work. This check-in should remove the need for the global Machine and in turn "deprecat.h" for a lot of drivers, but that work has not been done. On the flip side, some new accesses to the global Machine were added in the emu/ files. These should be addressed over time, but are smaller in number than the references in the driver.
Diffstat (limited to 'src/mame/video/superqix.c')
-rw-r--r--src/mame/video/superqix.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mame/video/superqix.c b/src/mame/video/superqix.c
index acd2487762a..b8dc23c701d 100644
--- a/src/mame/video/superqix.c
+++ b/src/mame/video/superqix.c
@@ -130,7 +130,7 @@ WRITE8_HANDLER( pbillian_0410_w )
bankaddress = 0x10000 + ((data & 0x08) >> 3) * 0x4000;
memory_set_bankptr(1,&rom[bankaddress]);
- interrupt_enable_w(0,data & 0x10);
+ interrupt_enable_w(machine,0,data & 0x10);
flip_screen_set(data & 0x20);
}
@@ -150,7 +150,7 @@ WRITE8_HANDLER( superqix_0410_w )
show_bitmap = (data & 0x04) >> 2;
/* bit 3 enables NMI */
- interrupt_enable_w(offset,data & 0x08);
+ interrupt_enable_w(machine,offset,data & 0x08);
/* bits 4-5 control ROM bank */
bankaddress = 0x10000 + ((data & 0x30) >> 4) * 0x4000;