diff options
Diffstat (limited to 'src/mame/drivers/pacland.c')
-rw-r--r-- | src/mame/drivers/pacland.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mame/drivers/pacland.c b/src/mame/drivers/pacland.c index 456c140c30b..40b56f53e14 100644 --- a/src/mame/drivers/pacland.c +++ b/src/mame/drivers/pacland.c @@ -198,8 +198,8 @@ READ8_MEMBER(pacland_state::pacland_input_r) int shift = 4 * (offset & 1); int port = offset & 2; static const char *const portnames[] = { "DSWA", "DSWB", "IN0", "IN1" }; - int r = (input_port_read(machine(), portnames[port]) << shift) & 0xf0; - r |= (input_port_read(machine(), portnames[port+1]) >> (4 - shift)) & 0x0f; + int r = (ioport(portnames[port])->read() << shift) & 0xf0; + r |= (ioport(portnames[port+1])->read() >> (4 - shift)) & 0x0f; return r; } |