DOKK / manpages / debian 11 / xtrs / cmddump.1.en
cmddump(1) General Commands Manual cmddump(1)

cmddump - simulated TRS-80 CMD file loader

cmddump [-d] [-i n] [-m] [-p entry] [-q] [-s] [-t] [-x] infile [outfile startbyte nbytes]

cmddump displays information about TRS-80 DOS CMD (binary executable) files. It takes a mandatory input CMD file infile, and an optional triplet of arguments: an output file outfile, a starting offset of startbyte into the CMD file infile, and a number of bytes to dump, nbytes. If startbytes is specified, the given byte range is dumped from the simulated memory after loading.

The numeric arguments, including that to the option -i, may be given in any format recognized by strtol(3); in other words, traditional C literals for decimal, octal, and hexadecimal.

The optional arguments and their parameters direct cmddump as follows.

print detailed map; same as -m, but do not coalesce adjacent blocks
select ISAM entry n
print running load map as file is parsed, coalescing adjacent blocks (implies -t); default
select PDS entry entry; cmddump will truncate or right-pad entry with spaces, as needed, to the required fixed field width
quiet; turns off -d, -m, -s, and -t (later flags can override)
print summary load map after file is parsed
print text of module headers, PDS headers, patch names, and copyright notices
ignore anything after the first transfer address

cmddump was written by Timothy Mann.

xtrs(1)

The LDOS Quarterly, April 1, 1982 (Vol 1, No 4), has documentation of the TRS-80 DOS CMD file format.

2017-04-04 xtrs