protected override void InitILOps(Type aAssemblerBaseOp) { var xILOp = new ILOp(this.Assembler); DebugInfo = new Debug.Common.DebugInfo(AppDomain.CurrentDomain.BaseDirectory + "DebugInfo.mdf", true, true); // Don't change the type in the foreach to a var, its necessary as it is now // to typecast it, so we can then recast to an int. foreach (ILOpCode.Code xCode in Enum.GetValues(typeof(ILOpCode.Code))) { int xCodeValue = (int)xCode; if (xCodeValue <= 0xFF) { mILOpsLo[xCodeValue] = xILOp; } else { mILOpsHi[xCodeValue & 0xFF] = xILOp; } } }
protected override void InitILOps(Type aAssemblerBaseOp) { var xILOp = new ILOp(this.Assembler); DebugInfo = new Debug.Common.DebugInfo(AppDomain.CurrentDomain.BaseDirectory + "DebugInfo.mdf", true); // Don't change the type in the foreach to a var, its necessary as it is now // to typecast it, so we can then recast to an int. foreach (ILOpCode.Code xCode in Enum.GetValues(typeof(ILOpCode.Code))) { int xCodeValue = (int)xCode; if (xCodeValue <= 0xFF) { mILOpsLo[xCodeValue] = xILOp; } else { mILOpsHi[xCodeValue & 0xFF] = xILOp; } } }