summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/audio/atarijsa.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/audio/atarijsa.c')
-rw-r--r--src/mame/audio/atarijsa.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/mame/audio/atarijsa.c b/src/mame/audio/atarijsa.c
index e12016138b3..c6ba04b31ae 100644
--- a/src/mame/audio/atarijsa.c
+++ b/src/mame/audio/atarijsa.c
@@ -227,8 +227,8 @@ static READ8_HANDLER( jsa1_io_r )
0x02 = coin 2
0x01 = coin 1
*/
- result = input_port_read(space->machine(), "JSAI");
- if (!(input_port_read(space->machine(), test_port) & test_mask)) result ^= 0x80;
+ result = space->machine().root_device().ioport("JSAI")->read();
+ if (!(space->machine().root_device().ioport(test_port)->read() & test_mask)) result ^= 0x80;
if (atarigen->m_cpu_to_sound_ready) result ^= 0x40;
if (atarigen->m_sound_to_cpu_ready) result ^= 0x20;
if ((tms5220 != NULL) && (tms5220_readyq_r(tms5220) == 0))
@@ -360,8 +360,8 @@ static READ8_HANDLER( jsa2_io_r )
0x02 = coin 2
0x01 = coin 1
*/
- result = input_port_read(space->machine(), "JSAII");
- if (!(input_port_read(space->machine(), test_port) & test_mask)) result ^= 0x80;
+ result = space->machine().root_device().ioport("JSAII")->read();
+ if (!(space->machine().root_device().ioport(test_port)->read() & test_mask)) result ^= 0x80;
if (atarigen->m_cpu_to_sound_ready) result ^= 0x40;
if (atarigen->m_sound_to_cpu_ready) result ^= 0x20;
break;
@@ -483,8 +483,8 @@ static READ8_HANDLER( jsa3_io_r )
0x02 = coin L (active high)
0x01 = coin R (active high)
*/
- result = input_port_read(space->machine(), "JSAIII");
- if (!(input_port_read(space->machine(), test_port) & test_mask)) result ^= 0x90;
+ result = space->machine().root_device().ioport("JSAIII")->read();
+ if (!(space->machine().root_device().ioport(test_port)->read() & test_mask)) result ^= 0x90;
if (atarigen->m_cpu_to_sound_ready) result ^= 0x40;
if (atarigen->m_sound_to_cpu_ready) result ^= 0x20;
break;
@@ -617,8 +617,8 @@ static READ8_HANDLER( jsa3s_io_r )
0x02 = coin L (active high)
0x01 = coin R (active high)
*/
- result = input_port_read(space->machine(), "JSAIII");
- if (!(input_port_read(space->machine(), test_port) & test_mask)) result ^= 0x90;
+ result = space->machine().root_device().ioport("JSAIII")->read();
+ if (!(space->machine().root_device().ioport(test_port)->read() & test_mask)) result ^= 0x90;
if (atarigen->m_cpu_to_sound_ready) result ^= 0x40;
if (atarigen->m_sound_to_cpu_ready) result ^= 0x20;
break;