Mercurial > hg > dmlib
comparison tools/lib64util.c @ 2517:106f4426c729
List formats without a loading address differently in argShowC64Formats().
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Tue, 12 May 2020 20:31:23 +0300 |
parents | a40de347fcb0 |
children | c6ee41fd98dd |
comparison
equal
deleted
inserted
replaced
2516:5fcc9f7b8ad8 | 2517:106f4426c729 |
---|---|
253 dmC64GetImageTypeString(buf, sizeof(buf), fmt->format->mode, FALSE) | 253 dmC64GetImageTypeString(buf, sizeof(buf), fmt->format->mode, FALSE) |
254 ); | 254 ); |
255 | 255 |
256 if (verbose) | 256 if (verbose) |
257 { | 257 { |
258 if (fmt->addr < 0) | |
259 { | |
260 fprintf(fh, "| %4s ", | |
261 fmt->addr == -1 ? "?" : ""); | |
262 } | |
263 else | |
264 { | |
258 fprintf(fh, "| $%04x ", | 265 fprintf(fh, "| $%04x ", |
259 (uint32_t) fmt->addr); | 266 (uint32_t) fmt->addr); |
267 } | |
260 | 268 |
261 if (fmt->size > 0) | 269 if (fmt->size > 0) |
262 { | 270 { |
263 fprintf(fh, "| $%04" DM_PRIx_SIZE_T " ", | 271 fprintf(fh, "| $%04" DM_PRIx_SIZE_T " ", |
264 fmt->size); | 272 fmt->size); |