mirror of
https://github.com/LuaJIT/LuaJIT.git
synced 2025-02-08 15:34:09 +00:00
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:
parent
df7c3245e0
commit
d63ff89c54
@ -1205,6 +1205,8 @@ map_op = {
|
|||||||
ni_2 = "000094000000SI",
|
ni_2 = "000094000000SI",
|
||||||
-- RXF
|
-- RXF
|
||||||
madb_3 = "ed000000001eRXF",
|
madb_3 = "ed000000001eRXF",
|
||||||
|
--RRD
|
||||||
|
maebr_3 = "0000b30e0000RRD",
|
||||||
}
|
}
|
||||||
for cond,c in pairs(map_cond) do
|
for cond,c in pairs(map_cond) do
|
||||||
-- Extended mnemonics for branches.
|
-- Extended mnemonics for branches.
|
||||||
@ -1394,6 +1396,10 @@ local function parse_template(params, template, nparams, pos)
|
|||||||
if a then a() end
|
if a then a() end
|
||||||
op2 = op2 + shl(parse_reg(params[1]),12)
|
op2 = op2 + shl(parse_reg(params[1]),12)
|
||||||
wputhw(op2)
|
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
|
elseif p == "w" then
|
||||||
local mode, n, s = parse_label(params[1])
|
local mode, n, s = parse_label(params[1])
|
||||||
wputhw(op1)
|
wputhw(op1)
|
||||||
|
Loading…
Reference in New Issue
Block a user