fix(cpu): use enums only of maintaining IME register state

This commit is contained in:
2021-04-05 01:10:03 -05:00
parent 77c7c610d0
commit 748c32c446
2 changed files with 14 additions and 18 deletions

View File

@@ -1022,7 +1022,7 @@ impl Instruction {
Instruction::EI => {
// Enable IME (After the next instruction)
// FIXME: IME is set after the next instruction, this currently is not represented in this emulator.
cpu.set_ime(ImeState::EnablePending(0));
cpu.set_ime(ImeState::Pending);
Cycle::new(4)
}
Instruction::CALL(cond, nn) => {