Added RRF-b mode support

This commit is contained in:
niravthakkar 2016-12-14 12:34:11 +05:30 committed by GitHub
parent 2f96ca3d91
commit 45669fecef

View File

@ -1167,6 +1167,8 @@ map_op = {
cfebra_4 = "0000b3980000RRF-e", cfebra_4 = "0000b3980000RRF-e",
-- RXE instructions -- RXE instructions
sqdb_2 = "ed0000000015RXE", sqdb_2 = "ed0000000015RXE",
-- RRF-b instructions
didbr_4 = "0000b3580000RRF-b",
} }
for cond,c in pairs(map_cond) do for cond,c in pairs(map_cond) do
-- Extended mnemonics for branches. -- Extended mnemonics for branches.
@ -1292,6 +1294,10 @@ local function parse_template(params, template, nparams, pos)
wputhw(op1); wputhw(op1);
if a then a() end if a then a() end
wputhw(op2); wputhw(op2);
elseif p == "RRF-b" then
wputhw(op1);
op2 = op2 + shl(parse_reg(params[1]),4) + shl(parse_reg(params[2]),12) + parse_reg(params[3]) + parse_mask(params[4])
wputhw(op2)
elseif p == "w" then elseif p == "w" then
local mode, n, s = parse_label(params[1]) local mode, n, s = parse_label(params[1])
wputhw(op1) wputhw(op1)