fn rlca(gb: &mut GameBoy) {
    let a = gb.cpu.get_8(Register8::A);
    let seventh = a >> 7;
    let rotated = a << 1 | seventh;

    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);
}
/// RLCA rotates the A register to the left one place. The 7th bit is
/// put back into the 0 position.  The 7th bit also goes to the carry flag.
RLCA rotates the A register to the left one place. The 7th bit is
put back into the 0 position.  The 7th bit also goes to the carry flag.
RLCA rotates the A register to the left one place . The 7th bit is put back into the 0 position . The 7th bit also goes to the carry flag .
fn rlca(gb: &mut GameBoy) {
    let a = gb.cpu.get_8(Register8::A);
    let seventh = a >> 7;
    let rotated = a << 1 | seventh;
    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 rlca ( gb : & mut GameBoy ) { let a = gb . cpu . get_8 ( Register8 :: A ) ; let seventh = a >> 7 ; let rotated = a << 1 | seventh ; 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 ) ; }
RLCA rotates the A register to the left one place.
RLCA rotates the A register to the left one place .
gb
&mut GameBoy