diff options
Diffstat (limited to 'src/mame/drivers/dogfgt.c')
-rw-r--r-- | src/mame/drivers/dogfgt.c | 17 |
1 files changed, 3 insertions, 14 deletions
diff --git a/src/mame/drivers/dogfgt.c b/src/mame/drivers/dogfgt.c index 23ac78f4990..97c0543a090 100644 --- a/src/mame/drivers/dogfgt.c +++ b/src/mame/drivers/dogfgt.c @@ -55,22 +55,11 @@ static WRITE8_HANDLER( dogfgt_soundcontrol_w ) /* bit 5 goes to 8910 #0 BDIR pin */ if ((last & 0x20) == 0x20 && (data & 0x20) == 0x00) - { - /* bit 4 goes to the 8910 #0 BC1 pin */ - if (last & 0x10) - ay8910_control_port_0_w(space,0,soundlatch); - else - ay8910_write_port_0_w(space,0,soundlatch); - } + ay8910_data_address_w(devtag_get_device(space->machine, SOUND, "ay1"), last >> 4, soundlatch); + /* bit 7 goes to 8910 #1 BDIR pin */ if ((last & 0x80) == 0x80 && (data & 0x80) == 0x00) - { - /* bit 6 goes to the 8910 #1 BC1 pin */ - if (last & 0x40) - ay8910_control_port_1_w(space,0,soundlatch); - else - ay8910_write_port_1_w(space,0,soundlatch); - } + ay8910_data_address_w(devtag_get_device(space->machine, SOUND, "ay2"), last >> 6, soundlatch); last = data; } |