chore(cpu): rename ImeSet to ImeEnabled
This commit is contained in:
parent
a15a6a25b6
commit
77c7c610d0
|
@ -96,7 +96,7 @@ impl Cpu {
|
|||
use HaltState::*;
|
||||
|
||||
match state {
|
||||
ImeSet | NonePending => Cycle::new(4),
|
||||
ImeEnabled | NonePending => Cycle::new(4),
|
||||
SomePending => todo!("Implement HALT bug"),
|
||||
}
|
||||
}
|
||||
|
@ -470,7 +470,7 @@ impl From<u8> for Flags {
|
|||
|
||||
#[derive(Debug, Clone, Copy)]
|
||||
pub enum HaltState {
|
||||
ImeSet,
|
||||
ImeEnabled,
|
||||
NonePending,
|
||||
SomePending,
|
||||
}
|
||||
|
|
|
@ -612,7 +612,7 @@ impl Instruction {
|
|||
let enabled = cpu.read_byte(0xFFFF);
|
||||
|
||||
let halt_state = if let ImeState::Enabled = cpu.ime() {
|
||||
ImeSet
|
||||
ImeEnabled
|
||||
} else if req & enabled != 0 {
|
||||
SomePending
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue