pub fn load_r16_r16(cpu: &mut CPU, r16_target: &Reg16, r16_source: &Reg16) -> u8 {
    // Copy from source register to target register
    let value = cpu.registers.read16(r16_source);
    cpu.registers.write16(r16_target, value);

    8
}
/// Load a 16-bit register into a 16-bit register.
///
/// Takes 8 cycles.
///
/// # Examples
///
/// ```asm
/// LD SP, HL
/// ```
Load a 16-bit register into a 16-bit register.
Takes 8 cycles.
Load a 16 - bit register into a 16 - bit register . Takes 8 cycles .
pub fn load_r16_r16(cpu: &mut CPU, r16_target: &Reg16, r16_source: &Reg16) -> u8 {
    // Copy from source register to target register
    let value = cpu.registers.read16(r16_source);
    cpu.registers.write16(r16_target, value);
    8
}
pub fn load_r16_r16 ( cpu : & mut CPU , r16_target : & Reg16 , r16_source : & Reg16 ) -> u8 { // Copy from source register to target register let value = cpu . registers . read16 ( r16_source ) ; cpu . registers . write16 ( r16_target , value ) ; 8 }
Load a 16-bit register into a 16-bit register.
Load a 16 - bit register into a 16 - bit register .
cpu
&mut CPU
r16_target
&Reg16
r16_source
&Reg16
cpu
&mut CPU
r16_target
&Reg16
r16_source
&Reg16
examples
None