From 410b42ee7718b71cca7c478155935c7bb1c7491e Mon Sep 17 00:00:00 2001 From: hap Date: Sun, 14 Mar 2021 14:35:45 +0100 Subject: pps41: remove obsolete function --- src/devices/cpu/pps41/mm76.h | 1 - src/devices/cpu/pps41/mm76op.cpp | 5 ----- src/devices/cpu/pps41/pps41base.h | 4 ++-- src/mame/drivers/hh_pps41.cpp | 4 ++-- 4 files changed, 4 insertions(+), 10 deletions(-) diff --git a/src/devices/cpu/pps41/mm76.h b/src/devices/cpu/pps41/mm76.h index 82956e1829e..6e858c35669 100644 --- a/src/devices/cpu/pps41/mm76.h +++ b/src/devices/cpu/pps41/mm76.h @@ -69,7 +69,6 @@ protected: void pop_pc(); void push_pc(); void op_illegal(); - void op_todo(); virtual bool op_is_tr(u8 op) override { return (op & 0xf0) == 0x30; }; virtual bool op_is_eob(u8 op) { return (op & 0xfc) == 0x1c; }; diff --git a/src/devices/cpu/pps41/mm76op.cpp b/src/devices/cpu/pps41/mm76op.cpp index 6cef3dae06d..99f6e87f9bf 100644 --- a/src/devices/cpu/pps41/mm76op.cpp +++ b/src/devices/cpu/pps41/mm76op.cpp @@ -38,11 +38,6 @@ void mm76_device::op_illegal() logerror("unknown opcode $%02X at $%03X\n", m_op, m_prev_pc); } -void mm76_device::op_todo() -{ - logerror("unimplemented opcode $%02X at $%03X\n", m_op, m_prev_pc); -} - // opcodes diff --git a/src/devices/cpu/pps41/pps41base.h b/src/devices/cpu/pps41/pps41base.h index 2158c76a9fe..9819c1198a9 100644 --- a/src/devices/cpu/pps41/pps41base.h +++ b/src/devices/cpu/pps41/pps41base.h @@ -42,8 +42,8 @@ public: auto write_sdo() { return m_write_sdo.bind(); } auto write_ssc() { return m_write_ssc.bind(); } - u16 d_r() { return m_d_output; } - u8 r_r() { return m_r_output; } + u16 d_output_r() { return m_d_output; } + u8 r_output_r() { return m_r_output; } int sdo_r() { return BIT(m_s, 3); } void ssc_w(int state); diff --git a/src/mame/drivers/hh_pps41.cpp b/src/mame/drivers/hh_pps41.cpp index 5b0747faca7..34d425796aa 100644 --- a/src/mame/drivers/hh_pps41.cpp +++ b/src/mame/drivers/hh_pps41.cpp @@ -22,8 +22,8 @@ // internal artwork #include "ftri1.lh" #include "mastmind.lh" -#include "mwcfootb.lh" #include "memoquiz.lh" +#include "mwcfootb.lh" #include "rdqa.lh" #include "scrabsen.lh" #include "smastmind.lh" @@ -564,7 +564,7 @@ void mwcfootb_state::main_write_d(u16 data) u16 mwcfootb_state::main_read_d() { // DIO9: subcpu DIO9 - return m_subcpu->d_r() & 0x200; + return m_subcpu->d_output_r() & 0x200; } void mwcfootb_state::main_write_r(u8 data) -- cgit v1.2.3