⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ndisasm.1

📁 开源的nasm编译器源码,研究编译器原理很有帮且
💻 1
字号:
.\" $Id: ndisasm.1,v 1.23 2002/04/30 21:09:14 hpa Exp $.\".\" This file is part of NASM and is released under the NASM License..\".TH NDISASM 1 "The Netwide Assembler Project".SH NAMEndisasm \- the Netwide Disassembler \- 80x86 binary file disassembler.SH SYNOPSIS.B ndisasm[.B \-oorigin] [.B \-ssync-point [...]][.B \-a|.B \-i] [.B \-bbits] [.B -u] [.B \-ehdrlen] [.B \-koffset,length [...]]infile.br.B ndisasm \-h.br.B ndisasm \-r.SH DESCRIPTIONThe.B ndisasmcommand generates a disassembly listing of the binary file.I infileand directs it to stdout..SS OPTIONS.TP.B \-hCauses.B ndisasmto exit immediately, after giving a summary of its invocationoptions..TP.BI \-rCauses.B ndisasmto exit immediately, after displaying its version number..TP.BI \-o " origin"Specifies the notional load address for the file. This option causes.B ndisasmto get the addresses it lists down the left hand margin, and thetarget addresses of PC-relative jumps and calls, right..TP.BI \-s " sync-point"Manually specifies a synchronisation address, such that.B ndisasmwill not output any machine instruction which encompasses bytes onboth sides of the address. Hence the instruction which.I startsat that address will be correctly disassembled..TP.BI \-e " hdrlen"Specifies a number of bytes to discard from the beginning of thefile before starting disassembly. This does not count towards thecalculation of the disassembly offset: the first.I disassembledinstruction will be shown starting at the given load address..TP.BI \-k " offset,length"Specifies that.I lengthbytes, starting from disassembly offset.IR offset ,should be skipped over without generating any output. The skippedbytes still count towards the calculation of the disassembly offset..TP.BR \-a " or " \-iEnables automatic (or intelligent) sync mode, in which.B ndisasmwill attempt to guess where synchronisation should be performed, bymeans of examining the target addresses of the relative jumps andcalls it disassembles..TP.BI \-b " bits"Specifies either 16-bit or 32-bit mode. The default is 16-bit mode..TP.B \-uSpecifies 32-bit mode, more compactly than using `-b 32'..TP.BI \-p " vendor"Prefers instructions as defined by.I vendorin case of a conflict.  Known.I vendornames include.BR intel ,.BR amd ,.BR cyrix ,and.BR idt .The default is.BR intel ..PP.RE.SH RESTRICTIONS.B ndisasmonly disassembles binary files: it has no understanding of theheader information present in object or executable files. If youwant to disassemble an object file, you should probably be using.BR objdump "(" 1 ").".PPAuto-sync mode won't necessarily cure all your synchronisationproblems: a sync marker can only be placed automatically if a jumpor call instruction is found to refer to it.I before.B ndisasmactually disassembles that part of the code. Also, if spurious jumpsor calls result from disassembling non-machine-code data, syncmarkers may get placed in strange places. Feel free to turnauto-sync off and go back to doing it manually if necessary..PP.B ndisasmcan only keep track of 8192 sync markers internally at once: this isto do with portability, since DOS machines don't take kindly to morethan 64K being allocated at a time..PP.SH SEE ALSO.BR objdump "(" 1 ")."

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -