0
0
mirror of https://github.com/netwide-assembler/nasm.git synced 2025-07-24 10:25:42 -04:00

BR3392248: Update ndisasm man

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
This commit is contained in:
Cyrill Gorcunov 2013-04-20 20:13:51 +04:00
parent 9563d09da6
commit 4de8f4efb7

View File

@ -21,54 +21,54 @@ infile and directs it to stdout.
OPTIONS OPTIONS
------- -------
-h:: *-h*::
Causes *ndisasm* to exit immediately, after giving a summary Causes *ndisasm* to exit immediately, after giving a summary
of its invocation options. of its invocation options.
-r:: *-r*::
Causes *ndisasm* to exit immediately, after displaying its Causes *ndisasm* to exit immediately, after displaying its
version number. version number.
-o 'origin':: *-o* 'origin'::
Specifies the notional load address for the file. This Specifies the notional load address for the file. This
option causes *ndisasm* to get the addresses it lists option causes *ndisasm* to get the addresses it lists
down the left hand margin, and the target addresses down the left hand margin, and the target addresses
of PC-relative jumps and calls, right. of PC-relative jumps and calls, right.
-s 'sync-point':: *-s* 'sync-point'::
Manually specifies a synchronisation address, such that Manually specifies a synchronisation address, such that
*ndisasm* will not output any machine instruction which *ndisasm* will not output any machine instruction which
encompasses bytes on both sides of the address. Hence encompasses bytes on both sides of the address. Hence
the instruction which starts at that address will be the instruction which starts at that address will be
correctly disassembled. correctly disassembled.
-e 'hdrlen':: *-e* 'hdrlen'::
Specifies a number of bytes to discard from the beginning Specifies a number of bytes to discard from the beginning
of the file before starting disassembly. This does not of the file before starting disassembly. This does not
count towards the calculation of the disassembly offset: count towards the calculation of the disassembly offset:
the first 'disassembled' instruction will be shown starting the first 'disassembled' instruction will be shown starting
at the given load address. at the given load address.
-k 'offset,length':: *-k* 'offset,length'::
Specifies that 'length' bytes, starting from disassembly Specifies that 'length' bytes, starting from disassembly
offset 'offset', should be skipped over without generating offset 'offset', should be skipped over without generating
any output. The skipped bytes still count towards the any output. The skipped bytes still count towards the
calculation of the disassembly offset. calculation of the disassembly offset.
-a|-i:: *-a*|*-i*::
Enables automatic (or intelligent) sync mode, in which Enables automatic (or intelligent) sync mode, in which
*ndisasm* will attempt to guess where synchronisation should *ndisasm* will attempt to guess where synchronisation should
be performed, by means of examining the target addresses be performed, by means of examining the target addresses
of the relative jumps and calls it disassembles. of the relative jumps and calls it disassembles.
-b 'bits':: *-b* 'bits'::
Specifies 16-, 32- or 64-bit mode. The default is 16-bit Specifies 16-, 32- or 64-bit mode. The default is 16-bit
mode. mode.
-u:: *-u*::
Specifies 32-bit mode, more compactly than using `-b 32'. Specifies 32-bit mode, more compactly than using `-b 32'.
-p 'vendor':: *-p* 'vendor'::
Prefers instructions as defined by 'vendor' in case of Prefers instructions as defined by 'vendor' in case of
a conflict. Known 'vendor' names include *intel*, *amd*, a conflict. Known 'vendor' names include *intel*, *amd*,
*cyrix*, and *idt*. The default is *intel*. *cyrix*, and *idt*. The default is *intel*.