diff options
Diffstat (limited to 'src/mame/machine/xevious.c')
-rw-r--r-- | src/mame/machine/xevious.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mame/machine/xevious.c b/src/mame/machine/xevious.c index 2071aaf74b1..77b6d2b9332 100644 --- a/src/mame/machine/xevious.c +++ b/src/mame/machine/xevious.c @@ -174,10 +174,10 @@ READ8_HANDLER( battles_input_port_r ) switch ( offset ) { default: - case 0: return ~BITSWAP8(input_port_read(space->machine(), "IN0H"),7,6,5,4,2,3,1,0); - case 1: return ~input_port_read(space->machine(), "IN1L"); - case 2: return ~input_port_read(space->machine(), "IN1H"); - case 3: return ~input_port_read(space->machine(), "IN0L"); + case 0: return ~BITSWAP8(space->machine().root_device().ioport("IN0H")->read(),7,6,5,4,2,3,1,0); + case 1: return ~space->machine().root_device().ioport("IN1L")->read(); + case 2: return ~space->machine().root_device().ioport("IN1H")->read(); + case 3: return ~space->machine().root_device().ioport("IN0L")->read(); } } |