pub(super) fn evaluate(self, ctx: &mut impl CpuContext) -> bool {
        let flags = ctx.cpustate().regs.flags;
        match self {
            Self::Unconditional => true,
            Self::NonZero => !flags.contains(Flags::ZERO),
            Self::Zero => flags.contains(Flags::ZERO),
            Self::NoCarry => !flags.contains(Flags::CARRY),
            Self::Carry => flags.contains(Flags::CARRY),
        }
    }
/// Returns true if the jump condition is satisfied, that is, the jump *should* happen.
Returns true if the jump condition is satisfied, that is, the jump *should* happen.
Returns true if the jump condition is satisfied that is the jump * should * happen .
pub(super) fn evaluate(self, ctx: &mut impl CpuContext) -> bool {
        let flags = ctx.cpustate().regs.flags;
        match self {
            Self::Unconditional => true,
            Self::NonZero => !flags.contains(Flags::ZERO),
            Self::Zero => flags.contains(Flags::ZERO),
            Self::NoCarry => !flags.contains(Flags::CARRY),
            Self::Carry => flags.contains(Flags::CARRY),
        }
    }
pub ( super ) fn evaluate ( self , ctx : & mut impl CpuContext ) -> bool { let flags = ctx . cpustate ( ) . regs . flags ; match self { Self :: Unconditional => true , Self :: NonZero => ! flags . contains ( Flags :: ZERO ) , Self :: Zero => flags . contains ( Flags :: ZERO ) , Self :: NoCarry => ! flags . contains ( Flags :: CARRY ) , Self :: Carry => flags . contains ( Flags :: CARRY ) , } }
Returns true if the jump condition is satisfied, that is, the jump *should* happen.
Returns true if the jump condition is satisfied that is the jump * should * happen .
self
ctx
&mut impl CpuContext
self
ctx
&mut impl CpuContext