3 .\" This file is part of NASM and is released under the NASM License.
5 .TH NDISASM 1 "The Netwide Assembler Project"
7 ndisasm \- the Netwide Disassembler, an 80x86 binary file disassembler
39 command generates a disassembly listing of the binary file
41 and directs it to stdout.
47 to exit immediately, after giving a summary of its invocation
53 to exit immediately, after displaying its version number.
56 Specifies the notional load address for the file. This option causes
58 to get the addresses it lists down the left hand margin, and the
59 target addresses of PC-relative jumps and calls, right.
62 Manually specifies a synchronisation address, such that
64 will not output any machine instruction which encompasses bytes on
65 both sides of the address. Hence the instruction which
67 at that address will be correctly disassembled.
70 Specifies a number of bytes to discard from the beginning of the
71 file before starting disassembly. This does not count towards the
72 calculation of the disassembly offset: the first
74 instruction will be shown starting at the given load address.
76 .BI \-k " offset,length"
79 bytes, starting from disassembly offset
81 should be skipped over without generating any output. The skipped
82 bytes still count towards the calculation of the disassembly offset.
85 Enables automatic (or intelligent) sync mode, in which
87 will attempt to guess where synchronisation should be performed, by
88 means of examining the target addresses of the relative jumps and
89 calls it disassembles.
92 Specifies either 16-bit or 32-bit mode. The default is 16-bit mode.
95 Specifies 32-bit mode, more compactly than using `-b 32'.
98 Prefers instructions as defined by
100 in case of a conflict. Known
114 only disassembles binary files: it has no understanding of the
115 header information present in object or executable files. If you
116 want to disassemble an object file, you should probably be using
117 .BR objdump "(" 1 ")."
119 Auto-sync mode won't necessarily cure all your synchronisation
120 problems: a sync marker can only be placed automatically if a jump
121 or call instruction is found to refer to it
124 actually disassembles that part of the code. Also, if spurious jumps
125 or calls result from disassembling non-machine-code data, sync
126 markers may get placed in strange places. Feel free to turn
127 auto-sync off and go back to doing it manually if necessary.
130 can only keep track of 8192 sync markers internally at once: this is
131 to do with portability, since DOS machines don't take kindly to more
132 than 64K being allocated at a time.
135 .BR objdump "(" 1 ")."