From cff37410784c656989609e84e216b385e1cf942f Mon Sep 17 00:00:00 2001 From: Robbbert Date: Sun, 26 Apr 2020 12:55:21 +1000 Subject: [PATCH] (nw) battles: fixed crash at start. Sounds are missing though, to be investigated. --- src/mame/machine/xevious.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/mame/machine/xevious.cpp b/src/mame/machine/xevious.cpp index bed5fd35111..9fd3a52e510 100644 --- a/src/mame/machine/xevious.cpp +++ b/src/mame/machine/xevious.cpp @@ -155,10 +155,10 @@ READ8_MEMBER( battles_state::input_port_r ) switch ( offset ) { default: - case 0: return ~bitswap<8>(ioport("IN0H")->read(),7,6,5,4,2,3,1,0); - case 1: return ~ioport("IN1L")->read(); - case 2: return ~ioport("IN1H")->read(); - case 3: return ~ioport("IN0L")->read(); + case 0: return ~bitswap<8>(ioport("IN1")->read(),2,3,1,0,6,7,5,4); + case 1: return ~ioport("IN0")->read() & 15; + case 2: return ~ioport("IN0")->read() >> 4; + case 3: return ~ioport("IN1")->read() & 15; } }