mirror of
https://github.com/AppleWin/AppleWin.git
synced 2025-01-02 19:29:27 +00:00
Debugger: Cleanup add symbol
This commit is contained in:
parent
677ba8ffb3
commit
1d4d1291f3
@ -823,7 +823,7 @@ Update_t _CmdSymbolsClear( SymbolTable_Index_e eSymbolTable )
|
|||||||
|
|
||||||
|
|
||||||
//===========================================================================
|
//===========================================================================
|
||||||
void SymbolUpdate( SymbolTable_Index_e eSymbolTable, const char *pSymbolName, WORD nAddress, bool bRemoveSymbol, bool bUpdateSymbol )
|
void SymbolUpdate ( SymbolTable_Index_e eSymbolTable, const char *pSymbolName, WORD nAddress, bool bRemoveSymbol, bool bUpdateSymbol )
|
||||||
{
|
{
|
||||||
if (bRemoveSymbol)
|
if (bRemoveSymbol)
|
||||||
pSymbolName = g_aArgs[2].sArg;
|
pSymbolName = g_aArgs[2].sArg;
|
||||||
@ -877,10 +877,14 @@ void SymbolUpdate( SymbolTable_Index_e eSymbolTable, const char *pSymbolName, WO
|
|||||||
g_aSymbols[ eSymbolTable ][ nAddress ] = pSymbolName;
|
g_aSymbols[ eSymbolTable ][ nAddress ] = pSymbolName;
|
||||||
|
|
||||||
// Tell user symbol was added
|
// Tell user symbol was added
|
||||||
ConsolePrintFormat( " Added symbol: %s%s%s %s$%s%04X%s"
|
ConsolePrintFormat(
|
||||||
, CHC_SYMBOL, pSymbolName, CHC_DEFAULT
|
/*CHC_DEFAULT*/ " Added symbol: "
|
||||||
, CHC_ARG_SEP
|
CHC_SYMBOL "%s"
|
||||||
, CHC_ADDRESS, nAddress, CHC_DEFAULT
|
CHC_DEFAULT " "
|
||||||
|
CHC_ARG_SEP "$"
|
||||||
|
CHC_ADDRESS "%04X"
|
||||||
|
, pSymbolName
|
||||||
|
, nAddress
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user