protected virtual bool IsConditionMet() { if (ExecutionEngine.Opcode.Definition.Z == 0) { return(Registers.FlagFromOpcodeY(ExecutionEngine.Opcode.Definition.Y)); } else if (ExecutionEngine.Opcode.Definition.Z == 1) { // ret (no condition) return(true); } throw Errors.AssignedToIllegalOpcode(); }