From 27e82a07f548bde7838e3c8b6e86bef268ebd67b Mon Sep 17 00:00:00 2001 From: angelosa Date: Fri, 12 May 2017 02:27:24 +0200 Subject: [PATCH] i/o 0x38 is actually 8910 read (nw) --- src/mame/drivers/epos.cpp | 3 ++- src/mame/video/epos.cpp | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/mame/drivers/epos.cpp b/src/mame/drivers/epos.cpp index f8cf3735108..a75838e8a66 100644 --- a/src/mame/drivers/epos.cpp +++ b/src/mame/drivers/epos.cpp @@ -103,7 +103,7 @@ static ADDRESS_MAP_START( dealer_io_map, AS_IO, 8, epos_state ) AM_RANGE(0x10, 0x13) AM_DEVREADWRITE("ppi8255", i8255_device, read, write) AM_RANGE(0x20, 0x24) AM_WRITE(dealer_decrypt_rom) AM_RANGE(0x34, 0x34) AM_DEVWRITE("aysnd", ay8910_device, data_w) - AM_RANGE(0x38, 0x38) AM_READ_PORT("DSW") + AM_RANGE(0x38, 0x38) AM_DEVREAD("aysnd", ay8910_device, data_r) AM_RANGE(0x3c, 0x3c) AM_DEVWRITE("aysnd", ay8910_device, address_w) AM_RANGE(0x40, 0x40) AM_DEVWRITE("watchdog", watchdog_timer_device, reset_w) ADDRESS_MAP_END @@ -500,6 +500,7 @@ static MACHINE_CONFIG_START( dealer, epos_state ) MCFG_SPEAKER_STANDARD_MONO("mono") MCFG_SOUND_ADD("aysnd", AY8910, 11000000/4) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) + MCFG_AY8910_PORT_A_READ_CB(IOPORT("DSW")) // port a writes? MCFG_AY8910_PORT_B_WRITE_CB(WRITE8(epos_state, flip_screen_w)) MACHINE_CONFIG_END diff --git a/src/mame/video/epos.cpp b/src/mame/video/epos.cpp index 880cd73de49..07c05b0e8ed 100644 --- a/src/mame/video/epos.cpp +++ b/src/mame/video/epos.cpp @@ -62,8 +62,10 @@ WRITE8_MEMBER(epos_state::dealer_pal_w) } WRITE8_MEMBER(epos_state::flip_screen_w) -{ +{ flip_screen_set(BIT(data, 7)); + + // bit 6: ay8910 port A/B multiplexer read? } WRITE8_MEMBER(epos_state::port_1_w)