fn rla(cpu: &mut Cpu) {
    let a = cpu.a();

    let newcarry = (a >> 7) != 0;
    let oldcarry = cpu.carry() as u8;

    cpu.set_a((a << 1) | oldcarry);

    cpu.set_carry(newcarry);
    cpu.set_zero(false);
    cpu.set_halfcarry(false);
    cpu.set_substract(false);
}
/// Rotate `A` left through carry
Rotate `A` left through carry
Rotate ` A ` left through carry
fn rla(cpu: &mut Cpu) {
    let a = cpu.a();
    let newcarry = (a >> 7) != 0;
    let oldcarry = cpu.carry() as u8;
    cpu.set_a((a << 1) | oldcarry);
    cpu.set_carry(newcarry);
    cpu.set_zero(false);
    cpu.set_halfcarry(false);
    cpu.set_substract(false);
}
fn rla ( cpu : & mut Cpu ) { let a = cpu . a ( ) ; let newcarry = ( a >> 7 ) != 0 ; let oldcarry = cpu . carry ( ) as u8 ; cpu . set_a ( ( a << 1 ) | oldcarry ) ; cpu . set_carry ( newcarry ) ; cpu . set_zero ( false ) ; cpu . set_halfcarry ( false ) ; cpu . set_substract ( false ) ; }
Rotate `A` left through carry
Rotate ` A ` left through carry
cpu
&mut Cpu
cpu
&mut Cpu