fn jump(ctx: &mut impl CpuContext, cond: ConditionCode) {
    // Conveniently, unconditional call behaves exactly the same as a conditional call with a true
    // value, down to the timing.
    let dest = Operand16::Immediate.read(ctx);
    if cond.evaluate(ctx) {
        // Branching adds an extra cycle despite not accessing memory.
        ctx.yield1m();
        ctx.cpustate_mut().regs.pc = dest;
    }
}
/// Performs a conditional absolute jump.
Performs a conditional absolute jump.
Performs a conditional absolute jump .
fn jump(ctx: &mut impl CpuContext, cond: ConditionCode) {
    // Conveniently, unconditional call behaves exactly the same as a conditional call with a true
    // value, down to the timing.
    let dest = Operand16::Immediate.read(ctx);
    if cond.evaluate(ctx) {
        // Branching adds an extra cycle despite not accessing memory.
        ctx.yield1m();
        ctx.cpustate_mut().regs.pc = dest;
    }
}
fn jump ( ctx : & mut impl CpuContext , cond : ConditionCode ) { // Conveniently, unconditional call behaves exactly the same as a conditional call with a true // value, down to the timing. let dest = Operand16 :: Immediate . read ( ctx ) ; if cond . evaluate ( ctx ) { // Branching adds an extra cycle despite not accessing memory. ctx . yield1m ( ) ; ctx . cpustate_mut ( ) . regs . pc = dest ; } }
Performs a conditional absolute jump.
Performs a conditional absolute jump .
ctx
&mut impl CpuContext
cond
ConditionCode
ctx
&mut impl CpuContext
cond
ConditionCode