Skip to content

Commit

Permalink
Debugger: 2.9.1.11 Fixed: Right justify signed decimal values.
Browse files Browse the repository at this point in the history
  • Loading branch information
Michaelangel007 committed Jan 4, 2022
1 parent f3c0e15 commit 5e70f79
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
4 changes: 3 additions & 1 deletion docs/Debugger_Changelog.txt
@@ -1,5 +1,7 @@
/*

2.9.1.11 Fixed: Right justify signed decimal values.
2.9.1.10 Fixed: Immedate #80 was not showing -128 for the signed decimal value.
2.9.1.9 Fixed: Immediate #0 was showing '#' prefix but not showing zero for the signed decimal value. Changed to show the signed decimal value only if non zero.
2.9.1.8 Changed: Disassembly window now lists symbol labels and symbol target address from User2 in orange.
Example:
U 300
Expand Down
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,10);
const int DEBUGGER_VERSION = MAKE_VERSION(2,9,1,11);


// Public _________________________________________________________________________________________
Expand Down
4 changes: 4 additions & 0 deletions source/Debugger/Debugger_Display.cpp
Expand Up @@ -1797,6 +1797,10 @@ WORD DrawDisassemblyLine ( int iLine, const WORD nBaseAddress )

if( line.nImmediate )
{
// Right justify to target ADDR:##
size_t len = strlen( line.sImmediateSignedDec );
linerect.left += (2 + (4 - len)) * nDefaultFontWidth;

DebuggerSetColorFG( DebuggerGetColor( FG_INFO_OPERATOR ));
PrintTextCursorX( "#", linerect );

Expand Down

0 comments on commit 5e70f79

Please sign in to comment.