Tidy the Z80 instruction scheduler a little

Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
This commit is contained in:
Adrian Conlon 2018-10-28 19:29:14 +00:00
parent edbc2784d9
commit b1af0710ba

View File

@ -639,10 +639,10 @@ uint8_t EightBit::Z80::readPort() {
}
int EightBit::Z80::step() {
ExecutingInstruction.fire(*this);
m_displaced = m_prefixCB = m_prefixDD = m_prefixED = m_prefixFD = false;
resetCycles();
ExecutingInstruction.fire(*this);
if (LIKELY(powered())) {
m_displaced = m_prefixCB = m_prefixDD = m_prefixED = m_prefixFD = false;
lower(M1());
if (UNLIKELY(lowered(RESET()))) {
handleRESET();