cmddump(1)
cmddump πΎβ¨
okay bestie, welcome to the General Commands Manual section for cmddump β she's a simulated TRS-80 CMD file loader and she is, lowkey, the moment. π
πΈ NAME πΈ
cmddump β simulated TRS-80 CMD file loader π
β¨ SYNOPSIS β¨
cmddump [-d] [-i n] [-m] [-p entry] [-q] [-s] [-t] [-x] infile [outfile
startbyte nbytes]
π¦ DESCRIPTION π¦
so cmddump literally just spills the tea about TRS-80 DOS CMD files, aka binary executables, aka the files that Do Things on a very vintage machine. π«Ά
You have to hand her an input CMD file, infile β that one's mandatory, no skipping, periodt. Then there's an optional lil trio you can pass after it: an output file outfile, a starting offset startbyte into the CMD file infile, and a number of bytes to dump, nbytes. π¦
If startbytes is specified, the byte range you asked for gets dumped from the simulated memory after loading. not before. after. timing matters bestie π
oh and β the numeric arguments, including the one that goes with -i, can be in any format strtol(3) recognizes. so basically the classic C literals: decimal, octal, hexadecimal. go off, bases π₯
π OPTIONS π
The optional arguments and their parameters direct cmddump as follows. she takes notes, she follows orders. π
-dβ print the detailed map. it's the same as-m, except it does not coalesce adjacent blocks. no merging, we keep every block separate and we respect the boundaries. π-i nβ select ISAM entryn. pick your entry, bestie β¨-mβ print a running load map as the file is parsed, coalescing adjacent blocks. this one implies-t, and it's the default. so if you don't say anything, this is the vibe you're getting π-p entryβ select PDS entryentry.cmddumpwill truncate or right-padentrywith spaces, as needed, to the required fixed field width. she's making it fit, she's not asking questions π-qβ quiet mode π«Ά. turns off-d,-m,-s, and-t. but ngl, later flags can override this, so order matters, iykyk-sβ print a summary load map after the file is parsed. the recap episode πΈ-tβ print the text of module headers, PDS headers, patch names, and copyright notices. all the receipts π-xβ ignore anything after the first transfer address. that's it, that's the whole personality. goodbye π
π AUTHOR π
cmddump was written by Timothy Mann. king behavior honestly π
π SEE ALSO π
xtrs(1)- The LDOS Quarterly, April 1, 1982 (Vol 1, No 4), has documentation of the TRS-80 DOS CMD file format. yes, a whole zine issue, and it's iconic for this πβ¨
k that's the whole page bestie, go dump some CMD files responsibly π§π
sourced from xtrs, dated 2017-04-04 β mwah, that's the wrap, slay π
π
π¦ where this page comes from
- debian bookworm: xtrs 4.9d-2+b1
- debian trixie: xtrs 4.9d-2.1
- ubuntu jammy: xtrs 4.9d-2build1
- ubuntu questing: xtrs 4.9d-2.1
- ubuntu resolute: xtrs 4.9d-3
- ubuntu stonking: xtrs 4.9d-3
- Copyright (C) 2007-2014 Free Software Foundation, Inc
- Copyright 2001, 2017 Branden Robinson
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms