pub fn jump_d16(cpu: &mut CPU) -> u8 {
    // Read 16-bit jump target address
    let jump_target = cpu.fetch16();

    // Jump PC to that target address
    cpu.registers.pc = jump_target;

    16
}
/// Jump to a different address using 16-bit data as an address.
///
/// Takes 16 cycles.
///
/// # Examples
///
/// ```asm
/// JP $0150 ; PC <- 0x0150
/// ```
Jump to a different address using 16-bit data as an address.
Takes 16 cycles.
Jump to a different address using 16 - bit data as an address . Takes 16 cycles .
pub fn jump_d16(cpu: &mut CPU) -> u8 {
    // Read 16-bit jump target address
    let jump_target = cpu.fetch16();
    // Jump PC to that target address
    cpu.registers.pc = jump_target;
    16
}
pub fn jump_d16 ( cpu : & mut CPU ) -> u8 { // Read 16-bit jump target address let jump_target = cpu . fetch16 ( ) ; // Jump PC to that target address cpu . registers . pc = jump_target ; 16 }
Jump to a different address using 16-bit data as an address.
Jump to a different address using 16 - bit data as an address .
cpu
&mut CPU
cpu
&mut CPU
examples
None