pub fn load_indirect_r16_r8(cpu: &mut CPU, r16_indirect_addr: &Reg16, r8_source: &Reg8) -> u8 {
    let indirect_addr = cpu.registers.read16(r16_indirect_addr);
    let register_val = cpu.registers.read8(r8_source);
    cpu.mmu.write8(indirect_addr, register_val);

    8
}
/// Load memory, using a 16-bit register as an address, with an 8-bit register value.
///
/// Takes 8 cycles.
///
/// # Examples
///
/// ```asm
/// LD (HL), A ; memory[HL] <- A
/// ```
Load memory, using a 16-bit register as an address, with an 8-bit register value.
Takes 8 cycles.
Load memory using a 16 - bit register as an address with an 8 - bit register value . Takes 8 cycles .
pub fn load_indirect_r16_r8(cpu: &mut CPU, r16_indirect_addr: &Reg16, r8_source: &Reg8) -> u8 {
    let indirect_addr = cpu.registers.read16(r16_indirect_addr);
    let register_val = cpu.registers.read8(r8_source);
    cpu.mmu.write8(indirect_addr, register_val);
    8
}
pub fn load_indirect_r16_r8 ( cpu : & mut CPU , r16_indirect_addr : & Reg16 , r8_source : & Reg8 ) -> u8 { let indirect_addr = cpu . registers . read16 ( r16_indirect_addr ) ; let register_val = cpu . registers . read8 ( r8_source ) ; cpu . mmu . write8 ( indirect_addr , register_val ) ; 8 }
Load memory, using a 16-bit register as an address, with an 8-bit register value.
Load memory using a 16 - bit register as an address with an 8 - bit register value .
cpu
&mut CPU
r16_indirect_addr
&Reg16
r8_source
&Reg8
cpu
&mut CPU
r16_indirect_addr
&Reg16
r8_source
&Reg8
examples
None