summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author R. Belmont <rb6502@users.noreply.github.com>2019-03-23 08:56:35 -0400
committer GitHub <noreply@github.com>2019-03-23 08:56:35 -0400
commit3462d1a29ade31cb2566edce5c881aaadb6ddb5b (patch)
tree18b588064516f2aa0ff3d1c83198d0ed3914b86f
parent35a03ba1aab5a0c6f304b7dbac66699ad6f0220e (diff)
parent178ee5c9d08e01690f8ae0708b79511dc3dd8db8 (diff)
Merge pull request #4792 from AmatCoder/AmatCoder-spectrum-1
spectrum.cpp: Fix return bits depending on hardware version
-rw-r--r--src/mame/drivers/spectrum.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mame/drivers/spectrum.cpp b/src/mame/drivers/spectrum.cpp
index 087111b013b..26d8263160f 100644
--- a/src/mame/drivers/spectrum.cpp
+++ b/src/mame/drivers/spectrum.cpp
@@ -424,7 +424,7 @@ READ8_MEMBER(spectrum_state::spectrum_port_fe_r)
/* Issue 2 Spectrums default to having bits 5, 6 & 7 set.
Issue 3 Spectrums default to having bits 5 & 7 set and bit 6 reset. */
- if (m_io_config->read() & 0x80)
+ if ((m_io_config->read() & 0x80) == 0)
data ^= (0x40);
return data;