mirror of
https://github.com/notwa/lips
synced 2024-11-14 17:39:03 -08: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:
parent
5f9be52d35
commit
d217ff8147
1 changed files with 4 additions and 4 deletions
8
lips.lua
8
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
|
||||
|
|
Loading…
Reference in a new issue