internal static void Closure(Instruction i, ILuaVM vm) { var(a, bx) = i.ABx(); a += 1; vm.LoadProto(bx); vm.Replace(a); }
/// <summary> /// R(A) = closure(KPROTO[Bx]) /// </summary> public static void Closure(Instruction ins, ILuaVM vm) { ins.ABx(out var a, out var bx); a += 1; vm.LoadProto(bx); vm.Replace(a); }
//(iBx) R(A) := closure(KPROTO[Bx]) public static void Closure(int i, ILuaVM vm) { int a = Instruction.GetA(i); int bx = Instruction.GetBx(i); vm.LoadProto(bx); vm.Replace(a); }