mirror of
https://github.com/holub/mame
synced 2025-04-25 17:56:43 +03:00
bugfix
This commit is contained in:
parent
f07a7eaa78
commit
ed7e5d2886
@ -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;
|
||||
}
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user