summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/kaneko16.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/kaneko16.c')
-rw-r--r--src/mame/drivers/kaneko16.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/mame/drivers/kaneko16.c b/src/mame/drivers/kaneko16.c
index b029ccd17aa..3363cc7d4fa 100644
--- a/src/mame/drivers/kaneko16.c
+++ b/src/mame/drivers/kaneko16.c
@@ -162,36 +162,36 @@ READ16_MEMBER(kaneko16_state::kaneko16_ay1_YM2149_r)
{
device_t *device = machine().device("ay1");
/* Each 2149 register is mapped to a different address */
- ay8910_address_w(device,0,offset);
- return ay8910_r(device,0);
+ ay8910_address_w(device,space,0,offset);
+ return ay8910_r(device,space,0);
}
WRITE16_MEMBER(kaneko16_state::kaneko16_ay1_YM2149_w)
{
device_t *device = machine().device("ay1");
/* Each 2149 register is mapped to a different address */
- ay8910_address_w(device,0,offset);
+ ay8910_address_w(device,space,0,offset);
/* The registers are mapped to odd addresses, except one! */
- if (ACCESSING_BITS_0_7) ay8910_data_w(device,0, data & 0xff);
- else ay8910_data_w(device,0,(data >> 8) & 0xff);
+ if (ACCESSING_BITS_0_7) ay8910_data_w(device,space,0, data & 0xff);
+ else ay8910_data_w(device,space,0,(data >> 8) & 0xff);
}
READ16_MEMBER(kaneko16_state::kaneko16_ay2_YM2149_r)
{
device_t *device = machine().device("ay2");
/* Each 2149 register is mapped to a different address */
- ay8910_address_w(device,0,offset);
- return ay8910_r(device,0);
+ ay8910_address_w(device,space,0,offset);
+ return ay8910_r(device,space,0);
}
WRITE16_MEMBER(kaneko16_state::kaneko16_ay2_YM2149_w)
{
device_t *device = machine().device("ay2");
/* Each 2149 register is mapped to a different address */
- ay8910_address_w(device,0,offset);
+ ay8910_address_w(device,space,0,offset);
/* The registers are mapped to odd addresses, except one! */
- if (ACCESSING_BITS_0_7) ay8910_data_w(device,0, data & 0xff);
- else ay8910_data_w(device,0,(data >> 8) & 0xff);
+ if (ACCESSING_BITS_0_7) ay8910_data_w(device,space,0, data & 0xff);
+ else ay8910_data_w(device,space,0,(data >> 8) & 0xff);
}