public static Instruction Create(int loopnumber) { var ins = AsmNext_Small.Create(loopnumber); if (ins.Success) { return(ins); } return(AsmNext_Large.Create(loopnumber)); }
public static new Instruction Create(int loopnumber) { if (loopnumber >= 1 << 26 || loopnumber < 0) { return(Failed.OutOfRange); } var ins = new AsmNext_Large(); ins.LoopNumber = loopnumber; return(ins); }