Skip to content

Commit

Permalink
Debugger: 2.9.1.3 Added: DB command now optionally supports =
Browse files Browse the repository at this point in the history
  • Loading branch information
Michaelangel007 committed Jan 4, 2022
1 parent 3985ee9 commit 48e0fe3
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 3 deletions.
7 changes: 7 additions & 0 deletions docs/Debugger_Changelog.txt
@@ -1,5 +1,12 @@
/*

2.9.1.3 Added: DB command now optionally supports =
DB HGR = 2000:3FFF
2.9.1.2 Fixed: Off by one end address when deleting DisasmData_t
2.9.1.1 Added: X command now supports a range and will chop off the appropiate data sections.
DB 2000:2005
X 2002:2003
Released post 1.30.7.0

2.9.1.0 Added: Bookmarks now have their own indicator (a number with a box around it) and replace the ":" seperator. Updated Debug_Font.bmp

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,0);
const int DEBUGGER_VERSION = MAKE_VERSION(2,9,1,3);


// Public _________________________________________________________________________________________
Expand Down
12 changes: 10 additions & 2 deletions source/Debugger/Debugger_DisassemblerData.cpp
Expand Up @@ -93,8 +93,16 @@ WORD _GetDataRange (int nArgs, int iArg, DisasmData_t& tData_)
}
else
{
if( nArgs > 1 )
nAddress = g_aArgs[ 2 ].nValue;
if (nArgs > 1)
{
// 2.9.1.1 Add: Support for equal sign, also make it optional for command DB
// DB FOO 300
// DB FOO = 300
if (g_aArgs[2].bType == TOKEN_EQUAL)
nAddress = g_aArgs[ 3 ].nValue;
else
nAddress = g_aArgs[ 2 ].nValue;
}
else
nAddress = g_aArgs[ 1 ].nValue;
}
Expand Down

0 comments on commit 48e0fe3

Please sign in to comment.