pub fn jump_r16(cpu: &mut CPU, r16: &Reg16) -> u8 {
    // Set PC to whatever the 16-bit register is
    cpu.registers.pc = cpu.registers.read16(r16);

    4
}
/// Jump to a different address using 16-bit register as an address.
///
/// Takes 4 cycles.
///
/// # Examples
///
/// ```asm
/// JP (HL) ; PC <- HL
/// ```
Jump to a different address using 16-bit register as an address.
Takes 4 cycles.
Jump to a different address using 16 - bit register as an address . Takes 4 cycles .
pub fn jump_r16(cpu: &mut CPU, r16: &Reg16) -> u8 {
    // Set PC to whatever the 16-bit register is
    cpu.registers.pc = cpu.registers.read16(r16);
    4
}
pub fn jump_r16 ( cpu : & mut CPU , r16 : & Reg16 ) -> u8 { // Set PC to whatever the 16-bit register is cpu . registers . pc = cpu . registers . read16 ( r16 ) ; 4 }
Jump to a different address using 16-bit register as an address.
Jump to a different address using 16 - bit register as an address .
cpu
&mut CPU
r16
&Reg16
cpu
&mut CPU
r16
&Reg16
examples
None