summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/cpu/pps41/mm78op.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/cpu/pps41/mm78op.cpp')
-rw-r--r--src/devices/cpu/pps41/mm78op.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/devices/cpu/pps41/mm78op.cpp b/src/devices/cpu/pps41/mm78op.cpp
index 13db81d05b8..ddf7221a682 100644
--- a/src/devices/cpu/pps41/mm78op.cpp
+++ b/src/devices/cpu/pps41/mm78op.cpp
@@ -7,8 +7,6 @@
#include "mm78.h"
-// opcodes
-
// changed opcodes
void mm78_device::op_lba()
@@ -63,7 +61,7 @@ void mm78_device::op_sos()
}
u8 bl = m_ram_addr & 0xf;
- if (bl < 10)
+ if (bl < m_d_pins)
{
m_d_output = (m_d_output | (1 << bl)) & m_d_mask;
m_write_d(m_d_output);
@@ -86,7 +84,7 @@ void mm78_device::op_ros()
}
u8 bl = m_ram_addr & 0xf;
- if (bl < 10)
+ if (bl < m_d_pins)
{
m_d_output = m_d_output & ~(1 << bl);
m_write_d(m_d_output);
@@ -109,7 +107,7 @@ void mm78_device::op_skisl()
}
u8 bl = m_ram_addr & 0xf;
- if (bl < 10)
+ if (bl < m_d_pins)
m_skip = !BIT((m_d_output | m_read_d()) & m_d_mask, bl);
else if (bl < 12)
m_skip = !m_int_ff[~bl & 1];