public override string ToString(Context cx) { if (!cx.IsLocal(A)) { cx.DefineLocal(A); //this fails, if this Register is used otherwise later } if (cx.IsLocal(A)) { return("local " + cx.SR(A) + " = " + cx.SKst(BX)); } if (!ObjLuaFunction.DEBUG) { return(""); } return("// " + R(A) + " = " + cx.SKst(BX)); }
public void Run(Context cx) { cx.SetLocal(A, cx.Kst(BX)); cx.SetSReg(A, cx.SKst(BX)); }