fn rrc(cpu: &mut Cpu, v: u8)  -> u8 {
        cpu.set_carry(v & 1 != 0);

        let r = (v >> 1) | (v << 7);

        cpu.set_zero(r == 0);

        cpu.set_substract(false);
        cpu.set_halfcarry(false);

        r
    }
/// Helper function to rotate an `u8` to the right and update CPU
/// flags.
Helper function to rotate an `u8` to the right and update CPU
flags.
Helper function to rotate an ` u8 ` to the right and update CPU flags .
fn rrc(cpu: &mut Cpu, v: u8)  -> u8 {
        cpu.set_carry(v & 1 != 0);
        let r = (v >> 1) | (v << 7);
        cpu.set_zero(r == 0);
        cpu.set_substract(false);
        cpu.set_halfcarry(false);
        r
    }
fn rrc ( cpu : & mut Cpu , v : u8 ) -> u8 { cpu . set_carry ( v & 1 != 0 ) ; let r = ( v >> 1 ) | ( v << 7 ) ; cpu . set_zero ( r == 0 ) ; cpu . set_substract ( false ) ; cpu . set_halfcarry ( false ) ; r }
Helper function to rotate an `u8` to the right and update CPU
flags.
Helper function to rotate an ` u8 ` to the right and update CPU flags .
cpu
&mut Cpu
v
u8
cpu
&mut Cpu
v
u8