mirror of
https://github.com/holub/mame
synced 2025-04-16 21:44:32 +03:00
pa7234: Fix slot selection logic to keep the number from underflowing
This commit is contained in:
parent
8d25f46228
commit
7445c016ba
@ -88,5 +88,5 @@ void pasopia_pa7234_device::pac2_write(offs_t offset, u8 data)
|
||||
|
||||
// 1, 2, 3, 4 or 7 may supposedly be written here
|
||||
if ((offset & 3) == 3 && (data & 0x07) != 0)
|
||||
m_slot_selected = (data & 0x03) - 1;
|
||||
m_slot_selected = (data - 1) & 0x03;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user