From 9c5f1d0d354e576d049bd36f5dbf13fb1deb17c6 Mon Sep 17 00:00:00 2001 From: Fabio DL Date: Tue, 18 Apr 2023 01:16:12 +0900 Subject: sega/sg1000.cpp: Fixed tape loading. (#11119) High bits from E --- src/mame/sega/sg1000.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mame/sega/sg1000.cpp b/src/mame/sega/sg1000.cpp index bd937a4adca..5b561b342cf 100644 --- a/src/mame/sega/sg1000.cpp +++ b/src/mame/sega/sg1000.cpp @@ -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); } -- cgit v1.2.3