Debugger: Fixed disasm of branch targets <000 missing leading zeros. (Fixes #587)

This commit is contained in:
tomcw 2018-10-13 22:35:55 +01:00
parent ab75725d5b
commit 91a6227da1

View File

@ -1493,7 +1493,7 @@ int GetDisassemblyLine ( WORD nBaseAddress, DisasmLine_t & line_ )
if (! (bDisasmFormatFlags & DISASM_FORMAT_SYMBOL)) if (! (bDisasmFormatFlags & DISASM_FORMAT_SYMBOL))
{ {
pTarget = FormatAddress( nTarget, nOpbyte ); pTarget = FormatAddress( nTarget, (iOpmode != AM_R) ? nOpbyte : 3 ); // GH#587: For Bcc opcodes, pretend it's a 3-byte opcode to print a 16-bit target addr
} }
// sprintf( sTarget, g_aOpmodes[ iOpmode ]._sFormat, pTarget ); // sprintf( sTarget, g_aOpmodes[ iOpmode ]._sFormat, pTarget );