This commit is contained in:
hap 2015-02-10 03:24:12 +01:00
parent f07a7eaa78
commit ed7e5d2886
2 changed files with 9 additions and 7 deletions

View File

@ -207,8 +207,9 @@ void amis2000_device::device_start()
void amis2000_device::device_reset()
{
m_pc = 0;
m_skip = false;
m_op = 0;
m_prev_op = m_op;
m_skip = false;
// clear i/o
m_d_polarity = 0;
@ -230,9 +231,6 @@ void amis2000_device::execute_run()
{
m_icount--;
// remember previous opcode
m_prev_op = m_op;
debugger_instruction_hook(this, m_pc);
m_op = m_program->read_byte(m_pc);
m_pc = (m_pc + 1) & 0x1fff;
@ -316,5 +314,8 @@ void amis2000_device::execute_run()
break; // 0xff
} // big switch
// remember previous opcode
m_prev_op = m_op;
}
}

View File

@ -190,6 +190,7 @@ void ucom4_cpu_device::device_reset()
m_inte_f = 1;
m_pc = 0;
m_op = 0;
m_prev_op = m_op;
m_skip = false;
// clear i/o
@ -226,9 +227,6 @@ void ucom4_cpu_device::execute_run()
{
m_icount--;
// remember previous opcode
m_prev_op = m_op;
debugger_instruction_hook(this, m_pc);
m_op = m_program->read_byte(m_pc);
m_bitmask = 1 << (m_op & 0x03);
@ -339,5 +337,8 @@ void ucom4_cpu_device::execute_run()
break; // 0xff
} // big switch
// remember previous opcode
m_prev_op = m_op;
}
}