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

Function FormatAddress

source/Debugger/Debugger_Disassembler.cpp:37–48  ·  view source on GitHub ↗

===========================================================================

Source from the content-addressed store, hash-verified

35
36//===========================================================================
37std::string FormatAddress(WORD nAddress, int nBytes)
38{
39 switch (nBytes)
40 {
41 case 2: return StrFormat("$%02X", (unsigned)nAddress); break;
42 case 3: return StrFormat("$%04X", (unsigned)nAddress); break;
43 // TODO: FIXME: Can we get called with nBytes == 16 ??
44 default: break; // clear since is static
45 }
46 // There is no symbol for this nAddress
47 return std::string();
48}
49
50//===========================================================================
51static char* FormatCharCopy(char* pDst, const char* pEnd, uint16_t srcAddr, const int nLen)

Callers 2

GetDisassemblyLineFunction · 0.85

Calls 1

StrFormatFunction · 0.85

Tested by

no test coverage detected