summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/ssozumo.c
diff options
context:
space:
mode:
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
commit537c9becf66a98da8e06673f0d3623be809e7bcf (patch)
tree4f7eb26b449269a216449320a61682f2b89387bc /src/mame/drivers/ssozumo.c
parent9c085ae0fa18df54f9cb8356ebbf2ae8bc8099bd (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/drivers/ssozumo.c')
-rw-r--r--src/mame/drivers/ssozumo.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mame/drivers/ssozumo.c b/src/mame/drivers/ssozumo.c
index 4ba88f7c9cd..1e420d7a0bb 100644
--- a/src/mame/drivers/ssozumo.c
+++ b/src/mame/drivers/ssozumo.c
@@ -51,8 +51,8 @@ static INTERRUPT_GEN( ssozumo_interrupt )
static WRITE8_HANDLER( ssozumo_sh_command_w )
{
- soundlatch_w(machine, offset, data);
- cpu_set_input_line(machine->cpu[1], M6502_IRQ_LINE, HOLD_LINE);
+ soundlatch_w(space, offset, data);
+ cpu_set_input_line(space->machine->cpu[1], M6502_IRQ_LINE, HOLD_LINE);
}