m6805: fix m6805TotalCycles()

This commit is contained in:
dinkc64 2018-04-25 04:02:26 +00:00
parent 75c082aa94
commit b636d9ebb5
1 changed files with 3 additions and 1 deletions

View File

@ -310,6 +310,7 @@ static void m68705_Interrupt(void)
}
}
m6805_ICount -= 11;
m6805.nTotalCycles += 11;
}
}
@ -335,7 +336,7 @@ static void Interrupt(void)
m6805.pending_interrupts &= ~(1<<HD63705_INT_NMI);
m6805_ICount -= 11;
m6805.nTotalCycles += 11;
}
else if( (m6805.pending_interrupts & ((1<<M6805_IRQ_LINE)|HD63705_INT_MASK)) != 0 ) {
if ( (CC & IFLAG) == 0 ) {
@ -407,6 +408,7 @@ static void Interrupt(void)
m6805.pending_interrupts &= ~(1<<M6805_IRQ_LINE);
}
m6805_ICount -= 11;
m6805.nTotalCycles += 11;
}
}