pub fn complement_carry_flag(cpu: &mut CPU) -> u8 {
    cpu.registers.f.set(Flags::SUBTRACT, false);
    cpu.registers.f.set(Flags::HALF_CARRY, false);
    cpu.registers.f.toggle(Flags::CARRY);

    4
}
/// Complement the carry flag.
///
/// Takes 4 cycles.
///
/// # Examples
///
/// ```asm
/// CCF ; Flags::CARRY = !Flags::CARRY
/// ```
Complement the carry flag.
Takes 4 cycles.
Complement the carry flag . Takes 4 cycles .
pub fn complement_carry_flag(cpu: &mut CPU) -> u8 {
    cpu.registers.f.set(Flags::SUBTRACT, false);
    cpu.registers.f.set(Flags::HALF_CARRY, false);
    cpu.registers.f.toggle(Flags::CARRY);
    4
}
pub fn complement_carry_flag ( cpu : & mut CPU ) -> u8 { cpu . registers . f . set ( Flags :: SUBTRACT , false ) ; cpu . registers . f . set ( Flags :: HALF_CARRY , false ) ; cpu . registers . f . toggle ( Flags :: CARRY ) ; 4 }
Complement the carry flag.
Complement the carry flag .
cpu
&mut CPU
cpu
&mut CPU
examples
```asm
CCF ; Flags::CARRY = !Flags::CARRY
```
` ` ` asm CCF ; Flags :: CARRY = !Flags :: CARRY ` ` `