Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

pas(1)

pcc(1)

pld(1)

out(4)

dis(1)

NAME

dis − object code disassembler

SYNOPSIS

dis [−o] [−V] [−L] [−?] [−F function] [−d sec] [−D sec] [−t sec] [−l string] file ...  [−Q arch]

DESCRIPTION

The dis command produces an assembly language listing of file, which may be an object file or an archive of object files. The listing includes assembly statements and, on Series 4000 and Series 5000 systems, an octal or hexadecimal representation of the binary that produced those statements.

The following options are interpreted by the disassembler and may be specified in any order. 

−o Print addresses and data in octal format.  The default is hexadecimal format. 

−V Print, on standard error, the version number of the disassembler being executed. 

−L Lookup source labels in the symbol table for subsequent printing.  This option works only if the file was compiled with additional debugging information [e.g., the −g option of cc(1)]. 

−? Print a summary of the command usage. 

−F function
Disassemble only the named function in each object file specified on the command line. The −F option may be specified multiple times on the command line. 

−d sec
Disassemble the named section as data, printing the offset of the data from the beginning of the section.

−D sec
Disassemble the named section as data, printing the actual address of the data.

−t sec
Disassemble the named section as text.

−l string
Disassemble the library file specified by string. For example, one would issue the command dis −l x −l z to disassemble libx.a and libz.a . All libraries are assumed to be in /lib. 

−Q arch
This option is available only on Series 4000 and Series 5000 systems. Arch may be one of TARGET=M88100 or TARGET=M88110. Certain opcodes have different semantics across these systems due to differences between the underlying microprocessors.  Dis normally interprests instructions, during disassembly, according to the system on which it is running.  If one of these command options is supplied, however, interpretation is done according to the specified microprocessor. 

If the −d, −D, or −t options are specified, only those named sections from each user-supplied file name will be disassembled.  Otherwise, all sections containing text will be disassembled. 

On output, a number enclosed in brackets at the beginning of a line, such as [5], indicates that the break-pointable line number starts with the following instruction. 

CAVEATS

The output for a pre-linked object file may not contain line number information.  This is due to different semantic meanings of the auxiliary entry x_lnnoptr field between the pre-linked and the linked object file. 

FILES

/lib.

SEE ALSO

pas(1), pcc(1), pld(1), a.out(4). 

DIAGNOSTICS

The self-explanatory diagnostics indicate errors in the command line or problems encountered with the specified files. 

CX/UX User’s Reference Manual

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026