pub fn load_r8_r8(cpu: &mut CPU, r8_target: &Reg8, r8_source: &Reg8) -> u8 {
    let value = cpu.registers.read8(r8_source);
    cpu.registers.write8(r8_target, value);

    4
}
/// Load an 8-bit register into another 8-bit register.
///
/// Takes 4 cycles.
///
/// # Examples
///
/// ```asm
/// LD A, B ; A <- B
/// LD B, D ; B <- D
/// ```
Load an 8-bit register into another 8-bit register.
Takes 4 cycles.
Load an 8 - bit register into another 8 - bit register . Takes 4 cycles .
pub fn load_r8_r8(cpu: &mut CPU, r8_target: &Reg8, r8_source: &Reg8) -> u8 {
    let value = cpu.registers.read8(r8_source);
    cpu.registers.write8(r8_target, value);
    4
}
pub fn load_r8_r8 ( cpu : & mut CPU , r8_target : & Reg8 , r8_source : & Reg8 ) -> u8 { let value = cpu . registers . read8 ( r8_source ) ; cpu . registers . write8 ( r8_target , value ) ; 4 }
Load an 8-bit register into another 8-bit register.
Load an 8 - bit register into another 8 - bit register .
cpu
&mut CPU
r8_target
&Reg8
r8_source
&Reg8
cpu
&mut CPU
r8_target
&Reg8
r8_source
&Reg8
examples
None