summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/machine/7200fifo.c
diff options
context:
space:
mode:
author Michaël Banaan Ananas <happppp@users.noreply.github.com>2013-11-30 13:00:12 +0000
committer Michaël Banaan Ananas <happppp@users.noreply.github.com>2013-11-30 13:00:12 +0000
commitccfd126105aa7212f4785a50af92e584a2488a47 (patch)
tree980a7d2f5af291df1d83fb98f699368a972118d0 /src/emu/machine/7200fifo.c
parentf1f8ef6c1635e57a8aa843d0002838ded164d6d3 (diff)
flag pins are inverted
Diffstat (limited to 'src/emu/machine/7200fifo.c')
-rw-r--r--src/emu/machine/7200fifo.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/emu/machine/7200fifo.c b/src/emu/machine/7200fifo.c
index 34316a13965..1794d4ce737 100644
--- a/src/emu/machine/7200fifo.c
+++ b/src/emu/machine/7200fifo.c
@@ -67,9 +67,9 @@ void fifo7200_device::device_reset()
m_ff = 0;
m_hf = 0;
- if (!m_ef_handler.isnull()) m_ef_handler(m_ef);
- if (!m_ff_handler.isnull()) m_ff_handler(m_ff);
- if (!m_hf_handler.isnull()) m_hf_handler(m_hf);
+ if (!m_ef_handler.isnull()) m_ef_handler(!m_ef);
+ if (!m_ff_handler.isnull()) m_ff_handler(!m_ff);
+ if (!m_hf_handler.isnull()) m_hf_handler(!m_hf);
}
@@ -89,19 +89,19 @@ void fifo7200_device::fifo_write(UINT16 data)
if (m_ef)
{
m_ef = 0;
- if (!m_ef_handler.isnull()) m_ef_handler(m_ef);
+ if (!m_ef_handler.isnull()) m_ef_handler(!m_ef);
}
else if (m_read_ptr == m_write_ptr)
{
m_ff = 1;
- if (!m_ff_handler.isnull()) m_ff_handler(m_ff);
+ if (!m_ff_handler.isnull()) m_ff_handler(!m_ff);
}
else if (((m_read_ptr + 1 + m_ram_size / 2) % m_ram_size) == m_write_ptr)
{
m_hf = 1;
- if (!m_hf_handler.isnull()) m_hf_handler(m_hf);
+ if (!m_hf_handler.isnull()) m_hf_handler(!m_hf);
}
}
@@ -120,19 +120,19 @@ UINT16 fifo7200_device::fifo_read()
if (m_ff)
{
m_ff = 0;
- if (!m_ff_handler.isnull()) m_ff_handler(m_ff);
+ if (!m_ff_handler.isnull()) m_ff_handler(!m_ff);
}
else if (m_read_ptr == m_write_ptr)
{
m_ef = 1;
- if (!m_ef_handler.isnull()) m_ef_handler(m_ef);
+ if (!m_ef_handler.isnull()) m_ef_handler(!m_ef);
}
else if (((m_read_ptr + m_ram_size / 2) % m_ram_size) == m_write_ptr)
{
m_hf = 0;
- if (!m_hf_handler.isnull()) m_hf_handler(m_hf);
+ if (!m_hf_handler.isnull()) m_hf_handler(!m_hf);
}
return ret;