From 5e70f7949ce367fccc54830266cd496d0485207a Mon Sep 17 00:00:00 2001 From: michaelangel007 Date: Tue, 4 Jan 2022 11:21:42 -0800 Subject: [PATCH] Debugger: 2.9.1.11 Fixed: Right justify signed decimal values. --- docs/Debugger_Changelog.txt | 4 +++- source/Debugger/Debug.cpp | 2 +- source/Debugger/Debugger_Display.cpp | 4 ++++ 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/docs/Debugger_Changelog.txt b/docs/Debugger_Changelog.txt index 9e7785e2..f11af9f9 100644 --- a/docs/Debugger_Changelog.txt +++ b/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 diff --git a/source/Debugger/Debug.cpp b/source/Debugger/Debug.cpp index 53bd66b4..a1296a39 100644 --- a/source/Debugger/Debug.cpp +++ b/source/Debugger/Debug.cpp @@ -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 _________________________________________________________________________________________ diff --git a/source/Debugger/Debugger_Display.cpp b/source/Debugger/Debugger_Display.cpp index 4c053853..bdea5677 100644 --- a/source/Debugger/Debugger_Display.cpp +++ b/source/Debugger/Debugger_Display.cpp @@ -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 );