internal static void LoadK(Instruction i, ILuaVM vm) { var(a, bx) = i.ABx(); a += 1; vm.GetConst(bx); vm.Replace(a); }
/// <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); }
/// <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); }
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); }
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); }
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); }