Added support for RRD addressing mode

We may not require RRD mode but, Added to check working of RRF-e.
This commit is contained in:
niravthakkar 2016-12-14 19:07:05 +05:30 committed by GitHub
parent df7c3245e0
commit d63ff89c54

View File

@ -1205,6 +1205,8 @@ map_op = {
ni_2 = "000094000000SI",
-- RXF
madb_3 = "ed000000001eRXF",
--RRD
maebr_3 = "0000b30e0000RRD",
}
for cond,c in pairs(map_cond) do
-- Extended mnemonics for branches.
@ -1394,6 +1396,10 @@ local function parse_template(params, template, nparams, pos)
if a then a() end
op2 = op2 + shl(parse_reg(params[1]),12)
wputhw(op2)
elseif p == "RRD" then
wputhw(op1)
op2 = op2 + shl(parse_reg(params[1]),12) + shl(parse_reg(params[2]),4) + parse_reg(params[3])
wputhw(op2)
elseif p == "w" then
local mode, n, s = parse_label(params[1])
wputhw(op1)