fn ccf(gb: &mut GameBoy) {
    let carry = gb.cpu.get_flag(Flag::C);
    gb.cpu.set_flag(Flag::C, !carry);
    gb.cpu.set_flag(Flag::N, false);
}
/// CCF complements the carry flag. If the flag was 1 it is now 0 and
/// vice  versa.  The Z P and S flags are unaffected.  The N flag  is
/// reset to 0. The H flag may be anything.
CCF complements the carry flag. If the flag was 1 it is now 0 and
vice  versa.  The Z P and S flags are unaffected.  The N flag  is
reset to 0. The H flag may be anything.
CCF complements the carry flag . If the flag was 1 it is now 0 and vice versa . The Z P and S flags are unaffected . The N flag is reset to 0 . The H flag may be anything .
fn ccf(gb: &mut GameBoy) {
    let carry = gb.cpu.get_flag(Flag::C);
    gb.cpu.set_flag(Flag::C, !carry);
    gb.cpu.set_flag(Flag::N, false);
}
fn ccf ( gb : & mut GameBoy ) { let carry = gb . cpu . get_flag ( Flag :: C ) ; gb . cpu . set_flag ( Flag :: C , ! carry ) ; gb . cpu . set_flag ( Flag :: N , false ) ; }
CCF complements the carry flag.
CCF complements the carry flag .
gb
&mut GameBoy