Exemple #1
0
 internal static void LoadK(Instruction i, ILuaVM vm)
 {
     var(a, bx) = i.ABx();
     a         += 1;
     vm.GetConst(bx);
     vm.Replace(a);
 }
Exemple #2
0
 /// <summary>
 /// R(A) = Kst(extra arg)
 /// </summary>
 public static void LoadKx(Instruction ins, ILuaVM vm)
 {
     ins.ABx(out var a, out _);
     a += 1;
     new Instruction(vm.Fetch()).Ax(out var ax);
     vm.GetConst(ax);
     vm.Replace(a);
 }
Exemple #3
0
        /// <summary>
        /// R(A) = Kst(Bx)
        /// </summary>
        public static void LoadK(Instruction ins, ILuaVM vm)
        {
            ins.ABx(out var a, out var bx);
            a += 1;

            vm.GetConst(bx);
            vm.Replace(a);
        }
Exemple #4
0
        public static void LoadKx(int i, ILuaVM vm)
        {
            int a  = Instruction.GetA(i) + 1;
            int ax = Instruction.GetAx(vm.Fetch());

            vm.GetConst(ax);
            vm.Replace(a);
        }
Exemple #5
0
        public static void LoadK(int i, ILuaVM vm)
        {
            int a  = Instruction.GetA(i) + 1;
            int bx = Instruction.GetBx(i);

            vm.GetConst(bx);
            vm.Replace(a);
        }
Exemple #6
0
    internal static void LoadKx(Instruction i, ILuaVM vm)
    {
        var(a, _) = i.ABx();
        a        += 1;
        int ax = ((Instruction)vm.Fetch()).Ax();

        vm.GetConst(ax);
        vm.Replace(a);
    }