Exemple #1
0
 /// <summary>
 /// R(A) = UpValue[B][RK(C)]
 /// </summary>
 public static void GetTabUp(Instruction ins, ILuaVM vm)
 {
     ins.ABC(out var a, out var b, out var c);
     a += 1;
     b += 1;
     vm.GetRK(c);
     vm.GetTable(vm.LuaUpvalueIndex(b));
     vm.Replace(a);
 }
Exemple #2
0
    public static void GetTable(Instruction i, ILuaVM vm)
    {
        var(a, b, c) = i.ABC();
        a           += 1;
        b           += 1;

        vm.GetRK(c);
        vm.GetTable(b);
        vm.Replace(a);
    }
Exemple #3
0
    internal static void GetTabUp(Instruction i, ILuaVM vm)
    {
        var(a, b, c) = i.ABC();
        a           += 1;
        b           += 1;

        vm.GetRK(c);
        vm.GetTable(LuaState.LuaUpvalueIndex(b));
        vm.Replace(a);
    }
Exemple #4
0
        /// <summary>
        /// R(A) = R(B)[RK(C)]
        /// </summary>
        public static void GetTable(Instruction ins, ILuaVM vm)
        {
            ins.ABC(out var a, out var b, out var c);
            a += 1;
            b += 1;

            vm.GetRK(c);
            vm.GetTable(b);
            vm.Replace(a);
        }
Exemple #5
0
        //R(A) := R(B)[RK(C)]
        public static void GetTable(int i, ILuaVM vm)
        {
            int a = Instruction.GetA(i) + 1;
            int b = Instruction.GetB(i) + 1;
            int c = Instruction.GetC(i);

            vm.GetRK(c);
            vm.GetTable(b);
            vm.Replace(a);
        }
Exemple #6
0
    internal static void Self(Instruction i, ILuaVM vm)
    {
        var(a, b, c) = i.ABC();
        a           += 1;
        b           += 1;

        vm.Copy(b, a + 1);
        vm.GetRK(c);
        vm.GetTable(b);
        vm.Replace(a);
    }