mirror of
https://github.com/holub/mame
synced 2025-07-01 16:19:38 +03:00
(nw) battles: fixed crash at start. Sounds are missing though, to be investigated.
This commit is contained in:
parent
8a923f9361
commit
cff3741078
@ -155,10 +155,10 @@ READ8_MEMBER( battles_state::input_port_r )
|
|||||||
switch ( offset )
|
switch ( offset )
|
||||||
{
|
{
|
||||||
default:
|
default:
|
||||||
case 0: return ~bitswap<8>(ioport("IN0H")->read(),7,6,5,4,2,3,1,0);
|
case 0: return ~bitswap<8>(ioport("IN1")->read(),2,3,1,0,6,7,5,4);
|
||||||
case 1: return ~ioport("IN1L")->read();
|
case 1: return ~ioport("IN0")->read() & 15;
|
||||||
case 2: return ~ioport("IN1H")->read();
|
case 2: return ~ioport("IN0")->read() >> 4;
|
||||||
case 3: return ~ioport("IN0L")->read();
|
case 3: return ~ioport("IN1")->read() & 15;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user