sega/sg1000.cpp: Fixed tape loading. (#11119)

High bits from E
This commit is contained in:
Fabio DL 2023-04-18 01:16:12 +09:00 committed by GitHub
parent 96af9667b6
commit 9c5f1d0d35
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -257,7 +257,7 @@ uint8_t sg1000_state::peripheral_r(offs_t offset)
if (joy_ports_disabled)
return m_sgexpslot->read(offset);
else if (offset & 0x01)
return BIT(m_ctrlports[1]->in_r(), 2, 4) | 0xf0;
return BIT(m_ctrlports[1]->in_r(), 2, 4) | (0xf0 & m_sgexpslot->read(offset));
else
return BIT(m_ctrlports[0]->in_r(), 0, 6) | (BIT(m_ctrlports[1]->in_r(), 0, 2) << 6);
}