From 6b11e24a28caee983a1fa68dd68f8b2890559161 Mon Sep 17 00:00:00 2001 From: michaelangel007 Date: Tue, 4 Jan 2022 11:20:08 -0800 Subject: [PATCH] Debugger: 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. --- source/Debugger/Debug.cpp | 2 +- source/Debugger/Debugger_Display.cpp | 12 ++++++++---- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/source/Debugger/Debug.cpp b/source/Debugger/Debug.cpp index 43a2ee11d..fc0576a85 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,8); + const int DEBUGGER_VERSION = MAKE_VERSION(2,9,1,9); // Public _________________________________________________________________________________________ diff --git a/source/Debugger/Debugger_Display.cpp b/source/Debugger/Debugger_Display.cpp index 05bcc1078..4c0538536 100644 --- a/source/Debugger/Debugger_Display.cpp +++ b/source/Debugger/Debugger_Display.cpp @@ -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