summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/machine/pgmprot6.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/machine/pgmprot6.c')
-rw-r--r--src/mame/machine/pgmprot6.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mame/machine/pgmprot6.c b/src/mame/machine/pgmprot6.c
index e69a8e14f46..e103a5eb846 100644
--- a/src/mame/machine/pgmprot6.c
+++ b/src/mame/machine/pgmprot6.c
@@ -120,7 +120,7 @@ static READ16_HANDLER( olds_r )
res = state->m_olds_cmd3;
else if (state->m_kb_cmd == 5)
{
- UINT32 protvalue = 0x900000 | input_port_read(space->machine(), "Region"); // region from protection device.
+ UINT32 protvalue = 0x900000 | state->ioport("Region")->read(); // region from protection device.
res = (protvalue >> (8 * (state->m_kb_ptr - 1))) & 0xff; // includes region 1 = taiwan , 2 = china, 3 = japan (title = orlegend special), 4 = korea, 5 = hongkong, 6 = world
}