From d217ff81479c56a4b976364770b981cb1e07c77e Mon Sep 17 00:00:00 2001 From: Connor Olding Date: Sun, 27 Dec 2015 02:44:53 -0800 Subject: [PATCH] reverse argument order in JALR the general argument order is d,s,t and this should not be an exception --- lips.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lips.lua b/lips.lua index db7a084..ca78de1 100644 --- a/lips.lua +++ b/lips.lua @@ -176,7 +176,7 @@ local instructions = { J = {2, 'I', 'I'}, JAL = {3, 'I', 'I'}, - JALR = {0, 'sd', 's0d0C', 9}, + JALR = {0, 'ds', 's0d0C', 9}, MTHI = {0, 's', 's000C', 17}, MTLO = {0, 's', 's000C', 19}, @@ -422,9 +422,9 @@ local instructions = { LA = {}, -- variable arguments - PUSH = 'PUSH', - POP = 'POP', - JPOP = 'JPOP', + PUSH = {}, + POP = {}, + JPOP = {}, ABS = {}, -- BGEZ NOP SUB? MUL = {}, -- MULT MFLO