Пример #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 << 10 || loopnumber < 0)
            {
                return(Failed.OutOfRange);
            }
            var ins = new AsmNext_Small
            {
                LoopNumber = loopnumber
            };

            return(ins);
        }