Debugger: 2.9.1.10 Fixed: Immedate #80 was not showing -128 for the signed decimal value.

This commit is contained in:
michaelangel007 2022-01-04 11:20:54 -08:00
parent 6b11e24a28
commit f3c0e151ab
2 changed files with 2 additions and 2 deletions

View File

@ -51,7 +51,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#define ALLOW_INPUT_LOWERCASE 1 #define ALLOW_INPUT_LOWERCASE 1
// See /docs/Debugger_Changelog.txt for full details // See /docs/Debugger_Changelog.txt for full details
const int DEBUGGER_VERSION = MAKE_VERSION(2,9,1,9); const int DEBUGGER_VERSION = MAKE_VERSION(2,9,1,10);
// Public _________________________________________________________________________________________ // Public _________________________________________________________________________________________

View File

@ -397,7 +397,7 @@ int GetDisassemblyLine(WORD nBaseAddress, DisasmLine_t& line_)
sprintf(line_.sImmediateSignedDec, "+%d" , nTarget ); sprintf(line_.sImmediateSignedDec, "+%d" , nTarget );
else else
if (nTarget >= 128) if (nTarget >= 128)
sprintf(line_.sImmediateSignedDec, "-%d" , (~nTarget + 1) & 0x7F ); sprintf(line_.sImmediateSignedDec, "-%d" , (~nTarget + 1) & 0xFF );
bDisasmFormatFlags |= DISASM_FORMAT_CHAR; bDisasmFormatFlags |= DISASM_FORMAT_CHAR;
line_.nImmediate = (BYTE)nTarget; line_.nImmediate = (BYTE)nTarget;