From d307d8d8a261cd61de5355bd6c8d06751fccc4e8 Mon Sep 17 00:00:00 2001 From: mahlemiut Date: Sun, 4 Mar 2018 23:41:44 +1300 Subject: [PATCH] should probably include register 15 also... (nw) --- src/mame/machine/amstrad.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mame/machine/amstrad.cpp b/src/mame/machine/amstrad.cpp index 15f45d0522a..15757d3baeb 100644 --- a/src/mame/machine/amstrad.cpp +++ b/src/mame/machine/amstrad.cpp @@ -2551,7 +2551,7 @@ void amstrad_state::update_psg() case 3: {/* b6 and b7 = 1 ? : The register will now be selected and the user can read from or write to it. The register will remain selected until another is chosen.*/ /* ignore if an invalid PSG register is selected, usually when the PPI port directions are changed after selecting the PSG register */ - if(m_ppi_port_outputs[amstrad_ppi_PortA] < 15) + if(m_ppi_port_outputs[amstrad_ppi_PortA] <= 15) { m_ay->address_w(space, 0, m_ppi_port_outputs[amstrad_ppi_PortA]); m_prev_reg = m_ppi_port_outputs[amstrad_ppi_PortA];