From c27aaa40087870a33f68f19d9c745c3e6a5513d1 Mon Sep 17 00:00:00 2001 From: Connor Olding Date: Wed, 2 Dec 2015 10:20:32 -0800 Subject: [PATCH] fix args --- lips.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lips.lua b/lips.lua index 8716759..ecfb25e 100644 --- a/lips.lua +++ b/lips.lua @@ -881,7 +881,7 @@ function Parser:const(relative, no_label) end function Parser:format_in(informat) - args = {} + local args = {} for i=1,#informat do local c = informat:sub(i, i) local c2 = informat:sub(i + 1, i + 1) @@ -1006,6 +1006,7 @@ function Parser:instruction() elseif h == 'LA' then local lui = instructions['LUI'] local addiu = instructions['ADDIU'] + local args = {} args.rt = self:register() self:optional_comma() local im = self:const()