summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author mahlemiut <bsr@xnet.co.nz>2015-11-27 22:01:55 +1300
committer mahlemiut <bsr@xnet.co.nz>2015-11-27 22:02:44 +1300
commit0e262ba9d7182ff8756bc1f59a50f7f1b38ba2ef (patch)
treeb6aac0b13a193fdb27e29dcccee4410f6ff0ae49
parent52385b8a11f3278088bce37d668c618df342a0be (diff)
amstrad: non-readable I/O returns 0 on Plus systems, fixes some system and CRTC detection methods
-rw-r--r--src/mame/machine/amstrad.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mame/machine/amstrad.cpp b/src/mame/machine/amstrad.cpp
index 1d21acd51da..192702abd08 100644
--- a/src/mame/machine/amstrad.cpp
+++ b/src/mame/machine/amstrad.cpp
@@ -1863,6 +1863,9 @@ READ8_MEMBER(amstrad_state::amstrad_cpc_io_r)
}
}
+ if ( m_system_type == SYSTEM_PLUS || m_system_type == SYSTEM_GX4000 ) // Plus systems return 0 when attempting to read the gate array (and any other unreadable space too?)
+ data = 0;
+
/* if b14 = 0 : CRTC Read selected */
if ((offset & (1<<14)) == 0)
{