ARM64: Fix disassembly of U12 loads.

Thanks to Peter Cawley. #1100
This commit is contained in:
Mike Pall 2023-10-08 21:57:04 +02:00
parent c5b075eb31
commit 14866a6828

View File

@ -948,7 +948,7 @@ local function disass_ins(ctx)
elseif p == "U" then elseif p == "U" then
local rn = map_regs.x[band(rshift(op, 5), 31)] local rn = map_regs.x[band(rshift(op, 5), 31)]
local sz = band(rshift(op, 30), 3) local sz = band(rshift(op, 30), 3)
local imm12 = lshift(arshift(lshift(op, 10), 20), sz) local imm12 = lshift(rshift(lshift(op, 10), 20), sz)
if imm12 ~= 0 then if imm12 ~= 0 then
x = "["..rn..", #"..imm12.."]" x = "["..rn..", #"..imm12.."]"
else else