diff options
author | 2008-11-14 16:43:46 +0000 | |
---|---|---|
committer | 2008-11-14 16:43:46 +0000 | |
commit | 537c9becf66a98da8e06673f0d3623be809e7bcf (patch) | |
tree | 4f7eb26b449269a216449320a61682f2b89387bc /src/emu/sound/2203intf.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/emu/sound/2203intf.c')
-rw-r--r-- | src/emu/sound/2203intf.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/emu/sound/2203intf.c b/src/emu/sound/2203intf.c index b5505002560..1ca584d0c86 100644 --- a/src/emu/sound/2203intf.c +++ b/src/emu/sound/2203intf.c @@ -305,17 +305,17 @@ WRITE16_HANDLER( ym2203_write_port_4_lsb_w ) WRITE8_HANDLER( ym2203_word_0_w ) { if (offset) - ym2203_write_port_0_w(machine,0,data); + ym2203_write_port_0_w(space,0,data); else - ym2203_control_port_0_w(machine,0,data); + ym2203_control_port_0_w(space,0,data); } WRITE8_HANDLER( ym2203_word_1_w ) { if (offset) - ym2203_write_port_1_w(machine,0,data); + ym2203_write_port_1_w(space,0,data); else - ym2203_control_port_1_w(machine,0,data); + ym2203_control_port_1_w(space,0,data); } |