📄 m68kdis.1
字号:
.TH M68KDIS 1 "November 15, 1994".SH NAMEm68kdis \- disassemble Motorola 68000 family object code.SH SYNOPSIS.LPm68kdis\fB[\fP\-\fIddd\fP\fB]\fP\fB[\fP\-a\ \fIfile\fP\fB]\fP\fB[\fP\-all[c]\fB]\fP\fB[\fP\-b\ \fIfile\fP\fB]\fP\fB[\fP\-bad\fB]\fP\fB[\fP\-f\ \fIfile\fP\fB]\fP\fB[\fP\-fdigits\ \fIdigits\fP\fB]\fP\fB[\fP\-i\ \fIfile\fP\fB]\fP\fB[\fP\-isp\fB]\fP\fB[\fP\-j\ \fIfile\fP\fB]\fP\fB[\fP\-l\fB]\fP\fB[\fP\-lft\fB]\fP\fB[\fP\-n\ \fIfile\fP\fB]\fP\fB[\fP\-ns\ \fIfile\fP\fB]\fP\fB[\fP\-o\ \fIfile\fP\fB]\fP\fB[\fP\-odd\fB]\fP\fB[\fP\-pc\ \fIinitialpc\fP\fB]\fP\fB[\fP\-s\ \fIlength\fP\fB]\fP\fB[\fP\-slenp\ \fIlength\fP\fB]\fP\fB[\fP\-sp\fB]\fP\fIfile...\fP.SH DESCRIPTION.LP.I m68kdisis a disassembler for the Motorola 68000 family of cpu chips.The disassembler attempts to discern between the instructionand data portions of an object code file..LP.I m68kdisproduces output files much like.BR cc (1).When the \fB\-o\fP option is not used, file arguments that end in \.ohave output filenames with \.s substituted for \.o; otherwise, \.sis simply appended..LPThe output consists of five columns:.IP \(buprogram counter in hexadecimal.IP \(bufile contents with each byte displayed as two characters in hexadecimal.IP \(bulabel (if any).IP \(buinstruction name.IP \(buoperands (if any).SH OPTIONS.LP.IP "\fI\-ddd\fP"Specifies the chip and coprocessors.Valid values for.I dddare currently \fI000\fP, \fI008\fP, \fI010\fP, \fI020\fP,\fI030\fP, \fI851\fP, \fI881\fP, and \fI882\fP.This option may be repeated as appropriate.The default is \fI000\fP with no coprocessors..IP "\-a\ \fIfile\fP"Specifies that.I filecontains lines of the form ``\fIaXXX\ instruction\-string\fP'' whichspecify acceptable A-line opcodes..I XXXis in hexadecimal..IP \-all[c]Specifies that only one pass should be made,outputting the instruction (if any) at each word boundary.If the.I cis included, \fB\-i\fP, \fB\-j\fP, \fB\-n\fP and \fB\-ns\fP optionsare also processed,and another pass is made to ensure consistency between instructions..IP "\-b\ \fIfile\fP"Specifies that.I filecontains program counter values which are taken aslocations in data to be output on a new line.The values should be one to a line, and of a form acceptable to.BR strtoul ()with base equal to 0..IP \-badSpecifies that lines should be printed to standard error that specifywhich data caused a potential instruction to be made invalid..IP "\-f\ \fIfile\fP"Specifies that.I filecontains lines of the form ``\fIfXXX\ instruction\-string\fP'' whichspecify acceptable F-line opcodes..I XXXis in hexadecimal..IP "\-fdigits\ \fIdigits\fP"Specifies that mantissas of floating-point constants should be printed with.I digitssignificant digits.The minimum value of.I digitsis 2; the default is 6..IP "\-i\ \fIfile\fP"Specifies that.I filecontains program counter values which are, if possible, to be taken aslocations of valid instructions.The values should be one to a line, and of a form acceptable to.BR strtoul ()with base equal to 0..IP \-ispSpecifies that the determination of a printing character should bedone by the local system's.BR isprint ().By default, only ASCII characters (0x20 to 0x7e inclusive) are consideredprinting characters..IP "\-j\ \fIfile\fP"Specifies that.I filecontains A-line and F-line opcodes which are unconditional jumps andtherefore do not need to be followed by a valid instruction.The values should be one to a line, and of a form acceptable to.BR strtoul ()with base equal to 0..IP \-lSpecifies that output should be in lower-case.(Exception: Label references retain an upper-case ``L''.).IP \-lftSpecifies that instructions that ``fall through'' to a LINK instructionshould be considered valid.By default, these instructions are considered invalid..IP "\-n\ \fIfile\fP"Specifies that.I filecontains program counter values which are to be taken aslocations of data.The values should be one to a line, and of a form acceptable to.BR strtoul ()with base equal to 0..IP "\-ns\ \fIfile\fP"Specifies that.I filecontains program counter values which are to be taken aslocations at which instructions do not begin.The words at these locations may, however, be extension words of instructions.The values should be one to a line, and of a form acceptable to.BR strtoul ()with base equal to 0..IP "\-o\ \fIfile\fP"Specifies the output file.Only one file to be disassembled may be given when this option is used..IP \-oddSpecifies that instructions may begin at odd offsets.This can be useful when code to be disassembled is not stripped out ofan object file.In particular, this option is often needed when disassemblingan intact Macintosh resource fork..IP "\-pc\ \fIinitialpc\fP"Specifies that.I initialpcbe taken as the program counter value for the start of the object code.The default is 0..IP "\-s\ \fIlength\fP"Specifies that data contain at least.I lengthconsecutive printing characters to be output as a string.The minimum value for.I lengthis 2; the default is 5..IP "\-slenp\ \fIlength\fP"Specifies that strings should print out no more than .I lengthcharacters per output line.The minimum value for.I lengthis 10; the default is 30..IP \-spSpecifies that register A7 should be output as SP, except in MOVEM instructions..SH NOTES.LPThe output is based on Motorola syntax..LPImmediate values are sometimes also output in hexadecimal after anintervening'if t \fC!\fP.'if n !..LPThe following procedure is used to filter out the data from the instructions:.IP \(buAn initial pass is made determining at which file offsets potentialinstructions exist and the sizes of those instructions including operands..IP \(buFile offsets specified by the user as being data are processed..IP \(buFile offsets specified by the user as not starting instructions are processed..IP \(buFile offsets specified by the user as being instructions are processed..IP \(buPotential instructions which reference data as instructionsare changed to data.(This step is repeated after each of the remaining steps.).IP \(buLINK instructions which are referenced by BSR and JSR instructions areaccepted as final instructions.(A final instruction is one that is included in the final output.).IP \(buRemaining LINK instructions are accepted as final instructions..IP \(buBranching and jumping instructions that reference final instructionsand are not potential extension words of floating-point instructionsare accepted as final instructions..IP \(buRemaining branching and jumping that are not extension words ofpotential floating-point instructionsand returning instructions are accepted as final instructions..IP \(buOverlapping instructions are selected by minimizing the amount of data..SH BUGS.LPSince.I m68kdisuses the imperfect procedure given in the \fB\s-2NOTES\s+2\fP,errors may result in the instruction/data determination.When problems are suspected, the \fB\-bad\fP\fIX\fP option can be usedto determine why instructions get interpreted as data.You can then use the \fB\-i\fP, \fB\-ns\fP, and \fB\-n\fP options,as appropriate..LPThe character set used in the object file may be neither ASCIInor that used by the local system..LPTwo unusual conditions checked for should be mentioned.Sometimes the decision to designate an instruction as a final instructionis later contradicted and the instruction is changed to data.In general, the instruction causing the contradiction should beregarded as data via the \fB\-ns\fP option.Also, sometimes it is reported that there is an ``overlap'' at acertain offset.This is because.I m68kdisis unsure if the best selection of two possible instructionswhich overlap each other was made.A quick inspection of the output at this offset should clear this up.Messages for these conditions are printed to standard error..SH "SEE ALSO.IP 1.Motorola: \fIM68000 8/16/32 Bit Microprocessors:Programmer's Reference Manual\fP\&, 5th ed\., Prentice-Hall,Englewood Cliffs, NJ, 1986..IP 2.Motorola: \fIM68030: Enhanced 32-Bit MicroprocessorUser's Manual\fP\&, 2nd ed\., Prentice-Hall,Englewood Cliffs, NJ, 1989..IP 3.Motorola: \fIM68851: Paged Memory Management UnitUser's Manual\fP\&, 2nd ed\., Prentice-Hall,Englewood Cliffs, NJ, 1989..IP 4.Motorola: \fIM68881/MC68882: Floating-Point CoprocessorUser's Manual\fP\&, 2nd ed\., Prentice-Hall,Englewood Cliffs, NJ, 1989..SH AUTHOR.LP.nfChristopher G. PhillipsChristopher_Phillips@pe.utexas.edu
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -