From ac2c5d3f523d0acacc490ce1f82242d0dd1e4de5 Mon Sep 17 00:00:00 2001 From: Souryo Date: Sun, 27 Nov 2016 10:44:49 -0500 Subject: [PATCH] Debugger: Fixed disassembly display for relative jumps --- Core/DisassemblyInfo.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Core/DisassemblyInfo.cpp b/Core/DisassemblyInfo.cpp index 89ff6c98..b394c96a 100644 --- a/Core/DisassemblyInfo.cpp +++ b/Core/DisassemblyInfo.cpp @@ -37,7 +37,7 @@ string DisassemblyInfo::ToString(uint32_t memoryAddr, shared_ptr } if(operandValue.empty()) { - if(_opSize == 2) { + if(_opSize == 2 && _opMode != AddrMode::Rel) { operandValue += "$" + HexUtilities::ToHex((uint8_t)_opAddr); } else { operandValue += "$" + HexUtilities::ToHex((uint16_t)_opAddr);