Skip to content

Commit

Permalink
Debugger: 2.9.1.10 Fixed: Immedate audetto#80 was not showing -128 fo…
Browse files Browse the repository at this point in the history
…r the signed decimal value.
  • Loading branch information
Michaelangel007 committed Jan 4, 2022
1 parent 6b11e24 commit f3c0e15
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion source/Debugger/Debug.cpp
Expand Up @@ -51,7 +51,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#define ALLOW_INPUT_LOWERCASE 1

// 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 _________________________________________________________________________________________
Expand Down
2 changes: 1 addition & 1 deletion source/Debugger/Debugger_Disassembler.cpp
Expand Up @@ -397,7 +397,7 @@ int GetDisassemblyLine(WORD nBaseAddress, DisasmLine_t& line_)
sprintf(line_.sImmediateSignedDec, "+%d" , nTarget );
else
if (nTarget >= 128)
sprintf(line_.sImmediateSignedDec, "-%d" , (~nTarget + 1) & 0x7F );
sprintf(line_.sImmediateSignedDec, "-%d" , (~nTarget + 1) & 0xFF );

bDisasmFormatFlags |= DISASM_FORMAT_CHAR;
line_.nImmediate = (BYTE)nTarget;
Expand Down

0 comments on commit f3c0e15

Please sign in to comment.