fn rla(gb: &mut GameBoy) {
    let a = gb.cpu.get_8(Register8::A);
    let carry = gb.cpu.get_flag(Flag::C) as u8;
    let seventh = a >> 7;
    let rotated = a << 1 | carry;

    gb.cpu.set_8(Register8::A, rotated);
    gb.cpu.set_flag(Flag::C, seventh == 0b1);
    gb.cpu.set_flag(Flag::N, false);
    gb.cpu.set_flag(Flag::H, false);
}
/// The  bits in the register are all rotated left,  the 7th bit goes
/// to the carry flag and the carry flag goes to bit 0. Flags apart from the
/// carry flag are as for RLCA.
The  bits in the register are all rotated left,  the 7th bit goes
to the carry flag and the carry flag goes to bit 0. Flags apart from the
carry flag are as for RLCA.
The bits in the register are all rotated left the 7th bit goes to the carry flag and the carry flag goes to bit 0 . Flags apart from the carry flag are as for RLCA .
fn rla(gb: &mut GameBoy) {
    let a = gb.cpu.get_8(Register8::A);
    let carry = gb.cpu.get_flag(Flag::C) as u8;
    let seventh = a >> 7;
    let rotated = a << 1 | carry;
    gb.cpu.set_8(Register8::A, rotated);
    gb.cpu.set_flag(Flag::C, seventh == 0b1);
    gb.cpu.set_flag(Flag::N, false);
    gb.cpu.set_flag(Flag::H, false);
}
fn rla ( gb : & mut GameBoy ) { let a = gb . cpu . get_8 ( Register8 :: A ) ; let carry = gb . cpu . get_flag ( Flag :: C ) as u8 ; let seventh = a >> 7 ; let rotated = a << 1 | carry ; gb . cpu . set_8 ( Register8 :: A , rotated ) ; gb . cpu . set_flag ( Flag :: C , seventh == 0b1 ) ; gb . cpu . set_flag ( Flag :: N , false ) ; gb . cpu . set_flag ( Flag :: H , false ) ; }
The  bits in the register are all rotated left,  the 7th bit goes
to the carry flag and the carry flag goes to bit 0.
The bits in the register are all rotated left the 7th bit goes to the carry flag and the carry flag goes to bit 0 .
gb
&mut GameBoy