Merge pull request #1163 from AppleWin/Debugger_2.9.1.14

Debugger 2.9.1.14 Fix disassembly when in middle of data
This commit is contained in:
Michael "Code Poet" Pohoreski 2023-01-08 12:56:37 -08:00 committed by GitHub
commit 1902af4ad9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 11 additions and 2 deletions

View File

@ -1,4 +1,11 @@
/*
2.9.1.14 Fix disassembly when in middle of data
Example:
ASC 7D0:7D7
ASC 7D8:7DF
7CF:EA 40 41 42 43 44 45 46 47 48
U 7D7
2.9.1.13 Added: CD now detects ".." to change to the previous directory and chops the trailing sub-directory from the current path.
It worked before but would clutter up the current directory with a trailing "..\".
2.9.1.12 Added: New commands HGR0, HGR3, HGR4, HGR5 to see pseudo pages $00, $60, $80, $A0 respectively.

View File

@ -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,13);
const int DEBUGGER_VERSION = MAKE_VERSION(2,9,1,14);
// Public _________________________________________________________________________________________

View File

@ -498,7 +498,9 @@ int _6502_GetOpmodeOpbyte ( const int nBaseAddress, int & iOpmode_, int & nOpby
if ( pData_ )
*pData_ = pData;
nSlack = pData->nEndAddress - pData->nStartAddress + 1; // *inclusive* KEEP IN SYNC: _CmdDefineByteRange() CmdDisasmDataList() _6502_GetOpmodeOpbyte() FormatNopcodeBytes()
const DWORD nEndAddress = pData->nEndAddress;
const int nDisplayLen = nEndAddress - nBaseAddress + 1; // *inclusive* KEEP IN SYNC: _CmdDefineByteRange() CmdDisasmDataList() _6502_GetOpmodeOpbyte() FormatNopcodeBytes()
nSlack = nDisplayLen;
// Data Disassembler
// Smart Disassembly - Data Section