fn bit_d(cpu: &mut Cpu, bit: u8) {
        let d = cpu.d();

        cpu.set_zero(bit_zero(d, bit));
        cpu.set_substract(false);
        cpu.set_halfcarry(true);
    }
/// Helper function to test bits in `D`
Helper function to test bits in `D`
Helper function to test bits in ` D `
fn bit_d(cpu: &mut Cpu, bit: u8) {
        let d = cpu.d();
        cpu.set_zero(bit_zero(d, bit));
        cpu.set_substract(false);
        cpu.set_halfcarry(true);
    }
fn bit_d ( cpu : & mut Cpu , bit : u8 ) { let d = cpu . d ( ) ; cpu . set_zero ( bit_zero ( d , bit ) ) ; cpu . set_substract ( false ) ; cpu . set_halfcarry ( true ) ; }
Helper function to test bits in `D`
Helper function to test bits in ` D `
cpu
&mut Cpu
bit
u8
cpu
&mut Cpu
bit
u8