예제 #1
0
        internal static void loadNil(Instruction i, ref LuaVM vm)
        {
            var(a, b) = i.AsBx();
            a        += 1;

            vm.PushNil();
            for (var l = a; l <= a + b; l++)
            {
                vm.Copy(-1, l);
            }

            vm.Pop(1);
        }
예제 #2
0
        internal static void LoadNil(Instruction i, ref LuaVM vm)
        {
            var(a, b, _) = i.ABC();
            a           += 1;

            vm.PushNil();
            for (var j = a; j <= a + b; j++)
            {
                vm.Copy(-1, j);
            }

            vm.Pop(1);
        }
예제 #3
0
        internal static void loadNil(Instruction i, ref LuaVM vm)
        {
            var ab_ = i.AsBx();
            var a   = ab_.Item1 + 1;
            var b   = ab_.Item2;

            vm.PushNil();
            for (var l = a; l <= a + b; l++)
            {
                vm.Copy(-1, l);
            }

            vm.Pop(1);
        }