From 6b41ddd4f3ddd6c9e5d17383ccc0f2811d4a1b95 Mon Sep 17 00:00:00 2001 From: AJR Date: Sun, 22 Nov 2020 13:49:35 -0500 Subject: cpu/vt61: Fix scratchpad addressing mistake --- src/devices/cpu/vt61/vt61.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/devices/cpu/vt61/vt61.cpp b/src/devices/cpu/vt61/vt61.cpp index bcd91776b88..96194302b0d 100644 --- a/src/devices/cpu/vt61/vt61.cpp +++ b/src/devices/cpu/vt61/vt61.cpp @@ -127,7 +127,7 @@ u8 vt61_cpu_device::get_db(u16 i) // SEL SPM u8 addr = bitswap<4>(i, 5, 4, 3, 7); if (BIT(i, 6)) - addr = (addr & 014) | m_ir; + addr = (addr & 011) | (m_ir << 1); return m_sp[addr]; } else switch (BIT(i, 7, 4)) -- cgit v1.2.3