예제 #1
0
        public static Instruction Create(int loopnumber)
        {
            var ins = AsmNext_Small.Create(loopnumber);

            if (ins.Success)
            {
                return(ins);
            }
            return(AsmNext_Large.Create(loopnumber));
        }
예제 #2
0
        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);
        }