summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author miodragm <mmicko@gmail.com>2014-10-25 10:33:15 +0200
committer miodragm <mmicko@gmail.com>2014-10-25 10:33:15 +0200
commitf7be2e136e04d705ff810664dae2a8247fd5c64c (patch)
treeeb5378f30343c98993c08f45fdc7b4a97da43b63
parentd092bdc6caac58e3d214bf4acfb70e2542259962 (diff)
parent56296e0df018681b2671a395aac2f8264a565d5c (diff)
Merge branch 'patch-3' of https://github.com/plgDavid/mame into plgDavid-patch-3
-rw-r--r--src/emu/cpu/cp1610/cp1610.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/emu/cpu/cp1610/cp1610.c b/src/emu/cpu/cp1610/cp1610.c
index 06bbfac1ae4..36f30e4ebe4 100644
--- a/src/emu/cpu/cp1610/cp1610.c
+++ b/src/emu/cpu/cp1610/cp1610.c
@@ -1009,12 +1009,12 @@ void cp1610_cpu_device::cp1610_besc(int dir)
* S Z C OV 1 000 s1e e p ppp ppp ppp ppp ppp
* - - - - BEXT ADDR, eeee
***************************************************/
-void cp1610_cpu_device::cp1610_bext(int ext, int dir)
+ void cp1610_cpu_device::cp1610_bext(int ext, int dir)
{
UINT16 offset = cp1610_readop(m_r[7]);
m_r[7]++;
- /* TBD */
- if (0)
+
+ if (m_read_bext(ext))
{
m_r[7] += (offset ^ dir);
m_icount -= 9;
@@ -3360,6 +3360,7 @@ void cp1610_cpu_device::execute_run()
void cp1610_cpu_device::device_start()
{
+ m_read_bext.resolve_safe(0);
m_intr_enabled = 0;
m_reset_pending = 0;
m_intr_pending = 0;
@@ -3421,6 +3422,7 @@ void cp1610_cpu_device::execute_set_input(int irqline, int state)
cp1610_cpu_device::cp1610_cpu_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: cpu_device(mconfig, CP1610, "CP1610", tag, owner, clock, "cp1610", __FILE__)
, m_program_config("program", ENDIANNESS_BIG, 16, 16, -1)
+ , m_read_bext(*this)
{
}