Debugger: 2.9.1.3 Added: DB command now optionally supports =

This commit is contained in:
michaelangel007
2022-01-03 21:11:25 -08:00
parent 3985ee9abc
commit 48e0fe3a8e
3 changed files with 18 additions and 3 deletions

View File

@@ -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;
}