From 1613671c115bd71c94e53cce6173bf98ca44d81f Mon Sep 17 00:00:00 2001 From: michaelangel007 Date: Tue, 4 Jan 2022 11:29:18 -0800 Subject: [PATCH] Debugger: Add note for 2.9.1.11 --- docs/Debugger_Changelog.txt | 11 +++++++++++ source/Debugger/Debugger_Display.cpp | 4 ++++ 2 files changed, 15 insertions(+) diff --git a/docs/Debugger_Changelog.txt b/docs/Debugger_Changelog.txt index f11af9f92..6cc3a9907 100644 --- a/docs/Debugger_Changelog.txt +++ b/docs/Debugger_Changelog.txt @@ -1,5 +1,16 @@ /* 2.9.1.11 Fixed: Right justify signed decimal values. + Example: + U 300 + 300:A9 80 A9 81 A9 FF A9 00 A9 01 A9 7E A9 7F + Will display as: + LDA #$80 #-128 + LDA #$81 #-127 + LDA #$FF #-1 + LDA #$00 + LDA #$01 #+1 + LDA #$7E #+126 + LDA #$7F #+127 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. diff --git a/source/Debugger/Debugger_Display.cpp b/source/Debugger/Debugger_Display.cpp index bdea5677f..eee3d5c0a 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 ) { + /* + 300:A9 80 A9 81 A9 FF A9 00 A9 01 A9 7E A9 7F + */ + // Right justify to target ADDR:## size_t len = strlen( line.sImmediateSignedDec ); linerect.left += (2 + (4 - len)) * nDefaultFontWidth;