diff options
Diffstat (limited to 'src/mame/machine/pgmprot.c')
-rw-r--r-- | src/mame/machine/pgmprot.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mame/machine/pgmprot.c b/src/mame/machine/pgmprot.c index 5ce799b6974..6f7dbc73ffa 100644 --- a/src/mame/machine/pgmprot.c +++ b/src/mame/machine/pgmprot.c @@ -21,7 +21,7 @@ static void asic3_compute_hold(running_machine &machine) // The mode is dependent on the region static const int modes[4] = { 1, 1, 3, 2 }; - int mode = modes[input_port_read(machine, "Region") & 3]; + int mode = modes[machine.root_device().ioport("Region")->read() & 3]; switch (mode) { @@ -60,9 +60,9 @@ READ16_HANDLER( pgm_asic3_r ) switch (state->m_asic3_reg) { - case 0x00: res = (state->m_asic3_latch[0] & 0xf7) | ((input_port_read(space->machine(), "Region") << 3) & 0x08); break; + case 0x00: res = (state->m_asic3_latch[0] & 0xf7) | ((state->ioport("Region")->read() << 3) & 0x08); break; case 0x01: res = state->m_asic3_latch[1]; break; - case 0x02: res = (state->m_asic3_latch[2] & 0x7f) | ((input_port_read(space->machine(), "Region") << 6) & 0x80); break; + case 0x02: res = (state->m_asic3_latch[2] & 0x7f) | ((state->ioport("Region")->read() << 6) & 0x80); break; case 0x03: res = (BIT(state->m_asic3_hold, 15) << 0) | (BIT(state->m_asic3_hold, 12) << 1) |