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