1
0
Fork 0
mirror of https://github.com/notwa/lips synced 2024-05-19 00:33:23 -07:00

reverse argument order in JALR

the general argument order is d,s,t and this should not be an exception
This commit is contained in:
Connor Olding 2015-12-27 02:44:53 -08:00
parent 5f9be52d35
commit d217ff8147

View File

@ -176,7 +176,7 @@ local instructions = {
J = {2, 'I', 'I'}, J = {2, 'I', 'I'},
JAL = {3, 'I', 'I'}, JAL = {3, 'I', 'I'},
JALR = {0, 'sd', 's0d0C', 9}, JALR = {0, 'ds', 's0d0C', 9},
MTHI = {0, 's', 's000C', 17}, MTHI = {0, 's', 's000C', 17},
MTLO = {0, 's', 's000C', 19}, MTLO = {0, 's', 's000C', 19},
@ -422,9 +422,9 @@ local instructions = {
LA = {}, LA = {},
-- variable arguments -- variable arguments
PUSH = 'PUSH', PUSH = {},
POP = 'POP', POP = {},
JPOP = 'JPOP', JPOP = {},
ABS = {}, -- BGEZ NOP SUB? ABS = {}, -- BGEZ NOP SUB?
MUL = {}, -- MULT MFLO MUL = {}, -- MULT MFLO