From 33c876b8b282524494bf5496ef94645120293a47 Mon Sep 17 00:00:00 2001 From: Connor Olding Date: Wed, 23 Dec 2015 20:23:58 -0800 Subject: [PATCH] more lips stuff i might not commit to no pun intended --- Lua/inject/lips.lua | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Lua/inject/lips.lua b/Lua/inject/lips.lua index e9c907a..c353a2c 100644 --- a/Lua/inject/lips.lua +++ b/Lua/inject/lips.lua @@ -386,8 +386,8 @@ local instructions = { B = {4, 'r', '00o'}, -- BEQ R0, R0, offset BAL = {1, 'r', '0Co', 17}, -- BGEZAL R0, offset CL = {0, 'd', '00d0C', 32}, -- ADD RD, R0, R0 - MOV = {0, 'dt', '0td0C', 32}, -- ADD RD, R0, RT - MOVE = {0, 'dt', '0td0C', 32}, -- ADD RD, R0, RT + MOV = {0, 'ds', 's0d0C', 32}, -- ADD RD, RT, R0 + MOVU = {0, 'ds', 's0d0C', 37}, -- OR RD, RS, R0 NEG = {0, 'dt', '0td0C', 34}, -- SUB RD, R0, RT NOP = {0, '', '0'}, -- SLL R0, R0, 0 NOT = {0, 'ds', 's0d0C', 39}, -- NOR RD, RS, R0 @@ -1060,10 +1060,10 @@ function Parser:instruction() -- for us, this is just semantics. for a "real" assembler, -- LA could add appropriate RELO LUI/ADDIU directives. - -- for that reason, we should always use the respective instructions. - if im[1] ~= 'LABELSYM' then - self:error('use LI for immediates') - end + -- for that reason, we should always use LA for addresses. + --if im[1] ~= 'LABELSYM' then + -- self:error('use LI for immediates') + --end args.rs = args.rt args.immediate = {'UPPEROFF', im}