But don't break SA1.

This commit is contained in:
Brandon Wright 2018-05-31 15:07:38 -05:00
parent 85b0cf0191
commit e38d66ca25
1 changed files with 4 additions and 1 deletions

View File

@ -1635,11 +1635,12 @@ static void OpF8 (void)
// CLI // CLI
static void Op58 (void) static void Op58 (void)
{ {
// ClearIRQ();
AddCycles(ONE_CYCLE); AddCycles(ONE_CYCLE);
#ifndef SA1_OPCODES #ifndef SA1_OPCODES
Timings.IRQFlagChanging = IRQ_CLEAR_FLAG; Timings.IRQFlagChanging = IRQ_CLEAR_FLAG;
#else
ClearIRQ();
#endif #endif
} }
@ -1650,6 +1651,8 @@ static void Op78 (void)
#ifndef SA1_OPCODES #ifndef SA1_OPCODES
Timings.IRQFlagChanging = IRQ_SET_FLAG; Timings.IRQFlagChanging = IRQ_SET_FLAG;
#else
SetIRQ();
#endif #endif
} }