fn cpl(gb: &mut GameBoy) {
    let a = gb.cpu.get_8(Register8::A);
    gb.cpu.set_8(Register8::A, !a);
    gb.cpu.set_flag(Flag::N, true);
    gb.cpu.set_flag(Flag::H, true);
}
///CPL  complements the A register.  All 0's become 1's and all  1's
///0's. The C, Z P and S flags are all unaffected. The N and H flags
///are both set to 1.
CPL  complements the A register.
CPL complements the A register .
fn cpl(gb: &mut GameBoy) {
    let a = gb.cpu.get_8(Register8::A);
    gb.cpu.set_8(Register8::A, !a);
    gb.cpu.set_flag(Flag::N, true);
    gb.cpu.set_flag(Flag::H, true);
}
fn cpl ( gb : & mut GameBoy ) { let a = gb . cpu . get_8 ( Register8 :: A ) ; gb . cpu . set_8 ( Register8 :: A , ! a ) ; gb . cpu . set_flag ( Flag :: N , true ) ; gb . cpu . set_flag ( Flag :: H , true ) ; }
CPL  complements the A register.
CPL complements the A register .
gb
&mut GameBoy