From b5c24afbc10a36f65e73d5ef2100da4ff173a109 Mon Sep 17 00:00:00 2001 From: Oxore Date: Sat, 3 Jun 2023 20:22:01 +0300 Subject: Impl -fimm-hex --- disasm.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'disasm.cpp') diff --git a/disasm.cpp b/disasm.cpp index 3755e39..01af6ea 100644 --- a/disasm.cpp +++ b/disasm.cpp @@ -1932,6 +1932,7 @@ int Arg::SNPrint( int Op::FPrint( FILE *const stream, const char *const indent, + const bool imm_as_hex, const RefKindMask ref_kinds, const char *const ref1_label, const char *const ref2_label, @@ -1949,14 +1950,14 @@ int Op::FPrint( // argument is plain address register, status register or condition code // register. USP is not the case because it's value may be moved only to // or from An register. - const bool imm_as_hex = + const bool imm_as_hex_2 = imm_as_hex || arg2.type == ArgType::kAn || arg2.type == ArgType::kCCR || arg2.type == ArgType::kSR; arg1.SNPrint( arg1_str, kArgsBufferSize, - imm_as_hex, + imm_as_hex_2, ref1_kinds, ref1_label, self_addr, -- cgit v1.2.3