diff options
author | Aaron Giles <aaron@aarongiles.com> | 2008-11-14 16:43:46 +0000 |
---|---|---|
committer | Aaron Giles <aaron@aarongiles.com> | 2008-11-14 16:43:46 +0000 |
commit | 537c9becf66a98da8e06673f0d3623be809e7bcf (patch) | |
tree | 4f7eb26b449269a216449320a61682f2b89387bc /src/mame/video/superqix.c | |
parent | 9c085ae0fa18df54f9cb8356ebbf2ae8bc8099bd (diff) |
WARNING: this compiles, but not fully cleanly, and a number of drivers
are broken.
Changed READ/WRITE handlers to accept an address_space * instead of a
machine *. The address_space object was enhanced to contain a machine
and a pointer to the relevant CPU object.
Fixed a number of errors found by the compiler, mostly in the core and
CPU/sound handlers, but there is a lot remaining to fix.
Added new function cpu_get_address_space() to fetch the address space
for calling in manually to these functions. In some instances, code
which should eventually be converted to a device is hard-coding fetching
the program space of CPU #0 in order to have something valid to pass.
Diffstat (limited to 'src/mame/video/superqix.c')
-rw-r--r-- | src/mame/video/superqix.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mame/video/superqix.c b/src/mame/video/superqix.c index a1e9606769c..3fc29d6ac06 100644 --- a/src/mame/video/superqix.c +++ b/src/mame/video/superqix.c @@ -137,7 +137,7 @@ WRITE8_HANDLER( pbillian_0410_w ) memory_set_bank(1, (data & 0x08) >> 3); - interrupt_enable_w(machine,0,data & 0x10); + interrupt_enable_w(space,0,data & 0x10); flip_screen_set(data & 0x20); } @@ -154,7 +154,7 @@ WRITE8_HANDLER( superqix_0410_w ) show_bitmap = (data & 0x04) >> 2; /* bit 3 enables NMI */ - interrupt_enable_w(machine,offset,data & 0x08); + interrupt_enable_w(space,offset,data & 0x08); /* bits 4-5 control ROM bank */ memory_set_bank(1, (data & 0x30) >> 4); |