Debugger: Fixed disassembly display for relative jumps

This commit is contained in:
Souryo 2016-11-27 10:44:49 -05:00
parent 8c209367a7
commit ac2c5d3f52

View File

@ -37,7 +37,7 @@ string DisassemblyInfo::ToString(uint32_t memoryAddr, shared_ptr<MemoryManager>
}
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);