pub fn sub_indirect_r16(cpu: &mut CPU, r16: &Reg16) -> u8 {
    let value = cpu.mmu.read8(cpu.registers.read16(r16));

    let (acc, flags) = alu_sub_8bit(cpu.registers.a, cpu.registers.f, value, false);
    cpu.registers.a = acc;
    cpu.registers.f = flags;

    8
}
/// Subtract memory addressed indirectly by a 16-bit register from register A, storing the result
/// in A.
///
/// Takes 8 cycles.
///
/// # Examples
///
/// ```asm
/// SUB (HL) ; A <- A - memory[HL]
/// ```
Subtract memory addressed indirectly by a 16-bit register from register A, storing the result
in A.

Takes 8 cycles.
Subtract memory addressed indirectly by a 16 - bit register from register A storing the result in A . Takes 8 cycles .
pub fn sub_indirect_r16(cpu: &mut CPU, r16: &Reg16) -> u8 {
    let value = cpu.mmu.read8(cpu.registers.read16(r16));
    let (acc, flags) = alu_sub_8bit(cpu.registers.a, cpu.registers.f, value, false);
    cpu.registers.a = acc;
    cpu.registers.f = flags;
    8
}
pub fn sub_indirect_r16 ( cpu : & mut CPU , r16 : & Reg16 ) -> u8 { let value = cpu . mmu . read8 ( cpu . registers . read16 ( r16 ) ) ; let ( acc , flags ) = alu_sub_8bit ( cpu . registers . a , cpu . registers . f , value , false ) ; cpu . registers . a = acc ; cpu . registers . f = flags ; 8 }
Subtract memory addressed indirectly by a 16-bit register from register A, storing the result
in A.
Subtract memory addressed indirectly by a 16 - bit register from register A storing the result in A .
cpu
&mut CPU
r16
&Reg16
cpu
&mut CPU
r16
&Reg16
examples
None