|
|
|
@ -88,18 +88,20 @@ namespace hv {
|
|
|
|
|
#define S
|
|
|
|
|
#define P_EX(n, buf) print_exact(buf)
|
|
|
|
|
#endif
|
|
|
|
|
char posbuf[3 + 16 + 2] = { '0' };
|
|
|
|
|
char posbuf[3 + 16 + 2];
|
|
|
|
|
posbuf[0] = '\n';
|
|
|
|
|
posbuf[1] = '0';
|
|
|
|
|
posbuf[2] = 'x';
|
|
|
|
|
|
|
|
|
|
#ifdef DEBUG
|
|
|
|
|
std::memset(posbuf+3, '0', 16);
|
|
|
|
|
#endif
|
|
|
|
|
posbuf[3 + 16] = ' ';
|
|
|
|
|
posbuf[3 + 16 + 1] = ' ';
|
|
|
|
|
|
|
|
|
|
u64_to_hex(offset, posbuf+3);
|
|
|
|
|
prints(posbuf+1);
|
|
|
|
|
|
|
|
|
|
char hxbuf[3] = { ' ' };
|
|
|
|
|
char hxbuf[3] = { ' ', ' ', ' ' };
|
|
|
|
|
std::size_t i=0;
|
|
|
|
|
char r_ascii[2 + ROW_SZ];
|
|
|
|
|
r_ascii[0] = ' ';
|
|
|
|
@ -124,7 +126,7 @@ namespace hv {
|
|
|
|
|
{
|
|
|
|
|
auto rest = memsize % ROW_SZ;
|
|
|
|
|
ascii[rest] = 0;
|
|
|
|
|
constexpr const char output[3] = { ' ' };
|
|
|
|
|
constexpr const char output[3] = { ' ', ' ', ' ' };
|
|
|
|
|
for(std::size_t j=0;j< ROW_SZ - rest;j++)
|
|
|
|
|
print_exact(output);
|
|
|
|
|
|
|
|
|
|