summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatarGravatar cracyc <cracyc@users.noreply.github.com>2014-12-03 13:32:15 -0600
committerGravatarGravatar cracyc <cracyc@users.noreply.github.com>2014-12-03 13:32:58 -0600
commit510d3b6172f454faddedb931a6b4aca942bf3f2f (patch) (github)
treef975113e58324f76c0b9d225a838e8b3908ba5f4
parentdf4591eea2c5f6193ffd96b73a69d5ef0933aca1 (diff)
downloadmame-510d3b6172f454faddedb931a6b4aca942bf3f2f.tar.bz2
mame-510d3b6172f454faddedb931a6b4aca942bf3f2f.zip
(mess) psx/memcard: change clocks to rising edge. (nw)
-rw-r--r--src/emu/bus/psx/memcard.h2
-rw-r--r--src/emu/bus/psx/multitap.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/emu/bus/psx/memcard.h b/src/emu/bus/psx/memcard.h
index 7763658770a..49e8236fbc7 100644
--- a/src/emu/bus/psx/memcard.h
+++ b/src/emu/bus/psx/memcard.h
@@ -63,7 +63,7 @@ public:
virtual void device_reset();
virtual void device_config_complete();
- void clock_w(bool state) { if(m_clock && !m_sel && !state && !m_pad) do_card(); m_clock = state; }
+ void clock_w(bool state) { if(!m_clock && !m_sel && state && !m_pad) do_card(); m_clock = state; }
void sel_w(bool state);
bool rx_r() { return m_rx; }
bool ack_r() { return m_ack; }
diff --git a/src/emu/bus/psx/multitap.c b/src/emu/bus/psx/multitap.c
index 8efd8c1d257..01028aea727 100644
--- a/src/emu/bus/psx/multitap.c
+++ b/src/emu/bus/psx/multitap.c
@@ -79,9 +79,9 @@ void psx_multitap_device::set_tx_line(bool tx, int port)
dev = m_portd;
break;
}
- dev->clock_w(1);
- dev->tx_w(tx);
dev->clock_w(0);
+ dev->tx_w(tx);
+ dev->clock_w(1);
}
bool psx_multitap_device::get_rx_line(int port)