MCPcopy Create free account
hub / github.com/AppleWin/AppleWin / _GetAutoSymbolName

Function _GetAutoSymbolName

source/Debugger/Debugger_DisassemblerData.cpp:35–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33// __ Debugger Interface ____________________________________________________________________________
34
35std::string _GetAutoSymbolName(const Nopcode_e& nopcode, const WORD nStartAddress)
36{
37 switch (nopcode)
38 {
39 case NOP_ADDRESS:
40 return StrFormat( "A_%04X", nStartAddress ); // DA range
41
42 case NOP_FAC:
43 return StrFormat( "F_%04X", nStartAddress ); // DF range
44
45 case NOP_STRING_ASCII:
46 case NOP_STRING_APPLE:
47 return StrFormat( "T_%04X", nStartAddress ); // ASC range
48
49 case NOP_WORD_1:
50 case NOP_WORD_2:
51 case NOP_WORD_4:
52 return StrFormat( "W_%04X", nStartAddress ); // DW range
53
54 case NOP_BYTE_1:
55 case NOP_BYTE_2:
56 case NOP_BYTE_4:
57 case NOP_BYTE_8:
58 default:
59 return StrFormat( "B_%04X", nStartAddress ); // DB range
60 }
61}
62
63// @param tData_ Filled out with range data
64//===========================================================================

Callers 2

_CmdDefineByteRangeFunction · 0.85
CmdDisasmDataDefCodeFunction · 0.85

Calls 1

StrFormatFunction · 0.85

Tested by

no test coverage detected