===========================================================================
| 35 | |
| 36 | //=========================================================================== |
| 37 | std::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 | //=========================================================================== |
| 51 | static char* FormatCharCopy(char* pDst, const char* pEnd, uint16_t srcAddr, const int nLen) |
no test coverage detected