Skip to content

Commit

Permalink
Debugger: 2.9.1.9 Fixed: Immediate #0 was showing '#' prefix but not …
Browse files Browse the repository at this point in the history
…showing zero for the signed decimal value. Changed to show the signed decimal value only if non zero.
  • Loading branch information
Michaelangel007 committed Jan 4, 2022
1 parent 61d6ef5 commit 6b11e24
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 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,8);
const int DEBUGGER_VERSION = MAKE_VERSION(2,9,1,9);


// Public _________________________________________________________________________________________
Expand Down
12 changes: 8 additions & 4 deletions source/Debugger/Debugger_Display.cpp
Expand Up @@ -1794,11 +1794,15 @@ WORD DrawDisassemblyLine ( int iLine, const WORD nBaseAddress )
if (line.bTargetImmediate)
{
linerect.left = (int) aTabs[ TS_IMMEDIATE ];
DebuggerSetColorFG( DebuggerGetColor( FG_INFO_OPERATOR ));
PrintTextCursorX( "#", linerect );

DebuggerSetColorFG( DebuggerGetColor( FG_DISASM_SINT8 ));
PrintTextCursorX( line.sImmediateSignedDec, linerect);
if( line.nImmediate )
{
DebuggerSetColorFG( DebuggerGetColor( FG_INFO_OPERATOR ));
PrintTextCursorX( "#", linerect );

DebuggerSetColorFG( DebuggerGetColor( FG_DISASM_SINT8 ));
PrintTextCursorX( line.sImmediateSignedDec, linerect);
}
}

// Immediate Char
Expand Down

0 comments on commit 6b11e24

Please sign in to comment.