pub fn interrupts(cpu: &mut CPU, enabled: bool) -> u8 {
    if enabled {
        cpu.ie_delay_state = InterruptFlagDelayStatus::ChangeScheduled;
    } else {
        cpu.de_delay_state = InterruptFlagDelayStatus::ChangeScheduled;
    }

    4
}
/// Enable or disable interrupts.
///
/// Takes 4 cycles.
///
/// # Examples
///
/// ```asm
/// DI
/// EI
/// ```
Enable or disable interrupts.
Takes 4 cycles.
Enable or disable interrupts . Takes 4 cycles .
pub fn interrupts(cpu: &mut CPU, enabled: bool) -> u8 {
    if enabled {
        cpu.ie_delay_state = InterruptFlagDelayStatus::ChangeScheduled;
    } else {
        cpu.de_delay_state = InterruptFlagDelayStatus::ChangeScheduled;
    }
    4
}
pub fn interrupts ( cpu : & mut CPU , enabled : bool ) -> u8 { if enabled { cpu . ie_delay_state = InterruptFlagDelayStatus :: ChangeScheduled ; } else { cpu . de_delay_state = InterruptFlagDelayStatus :: ChangeScheduled ; } 4 }
Enable or disable interrupts.
Enable or disable interrupts .
cpu
&mut CPU
enabled
bool
cpu
&mut CPU
enabled
bool
examples
None