summaryrefslogtreecommitdiff
path: root/main.cpp
diff options
context:
space:
mode:
authorOxore <oxore@protonmail.com>2023-05-20 17:36:32 +0300
committerOxore <oxore@protonmail.com>2023-05-20 17:36:32 +0300
commit1a9089d41233b3b7b207e9a7e8553dc5b14e92ae (patch)
treec52b12343f1699b4350b4231c887a7a74b0bff0f /main.cpp
parent429d978d108dfb77665f0c03a7190e2754c8fa1f (diff)
Fix MOVEM with PC relative argument when -frel-marks set
Diffstat (limited to 'main.cpp')
-rw-r--r--main.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/main.cpp b/main.cpp
index 4f10d03..ce40cc4 100644
--- a/main.cpp
+++ b/main.cpp
@@ -300,7 +300,8 @@ static void RenderDisassembly(
(s.rel_marks
? ((ref1 ? (node->ref_kinds & kRef1RelMask) : 0) |
(ref2 ? (node->ref_kinds & kRef2RelMask) : 0))
- : 0);
+ : 0) |
+ (node->ref_kinds & (kRefDataMask | kRefPcRelFix2Bytes));
node->op.FPrint(output, ref_kinds, node->offset, ref1_addr, ref2_addr);
if (s.xrefs_to && ref1) {
char ref_addr_str[12]{};