summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/mystston.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/mystston.c')
-rw-r--r--src/mame/drivers/mystston.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/mame/drivers/mystston.c b/src/mame/drivers/mystston.c
index 6c0a3ff6b11..e485f5f4d8e 100644
--- a/src/mame/drivers/mystston.c
+++ b/src/mame/drivers/mystston.c
@@ -78,20 +78,14 @@ static WRITE8_HANDLER( mystston_ay8910_select_w )
if (((*state->ay8910_select & 0x20) == 0x20) && ((data & 0x20) == 0x00))
{
/* bit 4 goes to the 8910 #0 BC1 pin */
- if (*state->ay8910_select & 0x10)
- ay8910_control_port_0_w(space, 0, *state->ay8910_data);
- else
- ay8910_write_port_0_w(space, 0, *state->ay8910_data);
+ ay8910_data_address_w(devtag_get_device(space->machine, SOUND, "ay1"), *state->ay8910_select >> 4, *state->ay8910_data);
}
/* bit 7 goes to 8910 #1 BDIR pin */
if (((*state->ay8910_select & 0x80) == 0x80) && ((data & 0x80) == 0x00))
{
/* bit 6 goes to the 8910 #1 BC1 pin */
- if (*state->ay8910_select & 0x40)
- ay8910_control_port_1_w(space, 0, *state->ay8910_data);
- else
- ay8910_write_port_1_w(space, 0, *state->ay8910_data);
+ ay8910_data_address_w(devtag_get_device(space->machine, SOUND, "ay2"), *state->ay8910_select >> 6, *state->ay8910_data);
}
*state->ay8910_select = data;