Debugger: fixed warning (and a typo)

This commit is contained in:
tomcw 2022-05-01 15:15:09 +01:00
parent 4063611e71
commit ccb4582bf9
2 changed files with 2 additions and 3 deletions

View File

@ -392,8 +392,7 @@ int GetDisassemblyLine(WORD nBaseAddress, DisasmLine_t& line_)
{ {
if (iOpmode == AM_M) if (iOpmode == AM_M)
{ {
//sTarget = StrFormat( g_aOpmodes[ iOpmode ].m_sFormat, (unsigned)nTarget ); strncpy_s(line_.sTarget, ByteToHexStr((BYTE)nTarget).c_str(), _TRUNCATE);
strncpy_s(line_.sTarget, ByteToHexStr(nTarget).c_str(), _TRUNCATE);
if (nTarget == 0) if (nTarget == 0)
line_.sImmediateSignedDec[0] = 0; // nothing line_.sImmediateSignedDec[0] = 0; // nothing

View File

@ -341,7 +341,7 @@ Update_t CmdDisasmDataList (int nArgs)
{ {
bool hasSymbol = pData->sSymbol[0] != '\0'; bool hasSymbol = pData->sSymbol[0] != '\0';
// <smbol> <type> <start>:<end> // <symbol> <type> <start>:<end>
// `TEST `300`:`320 // `TEST `300`:`320
ConsolePrintFormat( CHC_CATEGORY "%s %s%*s " CHC_ADDRESS "%04X" CHC_ARG_SEP ":" CHC_ADDRESS "%04X" ConsolePrintFormat( CHC_CATEGORY "%s %s%*s " CHC_ADDRESS "%04X" CHC_ARG_SEP ":" CHC_ADDRESS "%04X"
, g_aNopcodeTypes[ pData->eElementType ] , g_aNopcodeTypes[ pData->eElementType ]