File: cmddump.man

package info (click to toggle)
xtrs 4.9d-2.1
  • links: PTS
  • area: contrib
  • in suites: forky, sid, trixie
  • size: 5,480 kB
  • sloc: ansic: 72,545; makefile: 1,633; sh: 554; csh: 132
file content (195 lines) | stat: -rw-r--r-- 4,047 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
.\" This man page attempts to follow the conventions and recommendations found
.\" in Michael Kerrisk's man-pages(7) and GNU's groff_man(7), and groff(7).
.\"
.\" The following macro definitions come from groff's an-ext.tmac.
.\"
.\" Copyright (C) 2007-2014  Free Software Foundation, Inc.
.\"
.\" Written by Eric S. Raymond <esr@thyrsus.com>
.\"            Werner Lemberg <wl@gnu.org>
.\"
.\" You may freely use, modify and/or distribute this file.
.\"
.\" If _not_ GNU roff, define macros to handle synopsis and URLs.
.if !\n[.g] \{\
.\" Declare start of command synopsis.  Sets up hanging indentation.
.de SY
.  ie !\\n(mS \{\
.    nh
.    nr mS 1
.    nr mA \\n(.j
.    ad l
.    nr mI \\n(.i
.  \}
.  el \{\
.    br
.    ns
.  \}
.
.  nr mT \w'\fB\\$1\fP\ '
.  HP \\n(mTu
.  B "\\$1"
..
.
.
.\" End of command synopsis.  Restores adjustment.
.de YS
.  in \\n(mIu
.  ad \\n(mA
.  hy \\n(HY
.  nr mS 0
..
.
.
.\" Declare optional option.
.de OP
.  ie \\n(.$-1 \
.    RI "[\fB\\$1\fP" "\ \\$2" "]"
.  el \
.    RB "[" "\\$1" "]"
..
.
.
.\" Start URL.
.de UR
.  ds m1 \\$1\"
.  nh
.  if \\n(mH \{\
.    \" Start diversion in a new environment.
.    do ev URL-div
.    do di URL-div
.  \}
..
.
.
.\" End URL.
.de UE
.  ie \\n(mH \{\
.    br
.    di
.    ev
.
.    \" Has there been one or more input lines for the link text?
.    ie \\n(dn \{\
.      do HTML-NS "<a href=""\\*(m1"">"
.      \" Yes, strip off final newline of diversion and emit it.
.      do chop URL-div
.      do URL-div
\c
.      do HTML-NS </a>
.    \}
.    el \
.      do HTML-NS "<a href=""\\*(m1"">\\*(m1</a>"
\&\\$*\"
.  \}
.  el \
\\*(la\\*(m1\\*(ra\\$*\"
.
.  hy \\n(HY
..
.\} \" not GNU roff
.\" Copyright 2001, 2017 Branden Robinson
.\"
.\" This software may be copied, modified, and used for any purpose
.\" without fee, provided that (1) the above copyright notice is
.\" retained, and (2) modified versions are clearly marked as having
.\" been modified, with the modifier's name and the date included.
.\"
.TH cmddump 1 2017-04-04 xtrs
.SH Name
.B cmddump
\- simulated TRS-80 CMD file loader
.SH Synopsis
.SY cmddump
.OP \-d
.OP \-i n
.OP \-m
.OP \-p entry
.OP \-q
.OP \-s
.OP \-t
.OP \-x
.I infile
.RI [ "outfile startbyte nbytes" ]
.SH Description
.B cmddump
displays information about TRS-80 DOS CMD (binary executable) files.
It takes a mandatory input CMD file
.IR infile,
and an optional triplet of arguments: an output file
.IR outfile ,
a starting offset of
.I startbyte
into the CMD file
.IR infile ,
and a number of bytes to dump,
.IR nbytes .
If
.I startbytes
is specified, the given byte range is dumped from the simulated memory after
loading.
.PP
The numeric arguments, including that to the option
.BR \-i ,
may be given in any format recognized by
.BR strtol (3);
in other words, traditional C literals for decimal, octal, and hexadecimal.
.SH Options
The optional arguments and their parameters direct
.B cmddump
as follows.
.TP
.B \-d
print detailed map; same as
.BR \-m ,
but do not coalesce adjacent blocks
.TP
.BI "\-i " n
.RI "select ISAM entry " n
.TP
.B \-m
print running load map as file is parsed, coalescing adjacent blocks (implies
.BR \-t );
default
.TP
.BI "\-p " entry
select PDS entry
.IR entry ;
.B cmddump
will truncate or right-pad
.I entry
with spaces, as needed, to the required fixed field width
.TP
.B \-q
quiet; turns off
.BR \-d ,
.BR \-m ,
.BR \-s ,
and
.B \-t
(later flags can override)
.TP
.B \-s
print summary load map after file is parsed
.TP
.B \-t
print text of module headers, PDS headers, patch names, and copyright notices
.TP
.B \-x
ignore anything after the first transfer address
.SH Author
.B cmddump
was written by Timothy Mann.
.SH See also
.BR xtrs (1)
.PP
The
.\" If GNU roff, use hyphenless breakpoints.
.ie \n[.g] .UR http://\:www.tim-mann.org/\:misosys.html
.el .UR http://www.tim-mann.org/misosys.html
.IR "LDOS Quarterly" ,
April 1, 1982 (Vol 1, No 4)
.UE ,
has documentation of the TRS-80 DOS CMD file format.
.\" $Id: cmddump.man,v 1.2 2008/06/26 04:39:56 mann Exp $
.\" vim:set et ft=nroff tw=80: