Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

184 rindas
7.7KB

  1. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  2. <html>
  3. <!-- This file documents the GNU Assembler "as".
  4. Copyright (C) 1991-2020 Free Software Foundation, Inc.
  5. Permission is granted to copy, distribute and/or modify this document
  6. under the terms of the GNU Free Documentation License, Version 1.3
  7. or any later version published by the Free Software Foundation;
  8. with no Invariant Sections, with no Front-Cover Texts, and with no
  9. Back-Cover Texts. A copy of the license is included in the
  10. section entitled "GNU Free Documentation License".
  11. -->
  12. <!-- Created by GNU Texinfo 6.5, http://www.gnu.org/software/texinfo/ -->
  13. <head>
  14. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  15. <title>M (Using as)</title>
  16. <meta name="description" content="M (Using as)">
  17. <meta name="keywords" content="M (Using as)">
  18. <meta name="resource-type" content="document">
  19. <meta name="distribution" content="global">
  20. <meta name="Generator" content="makeinfo">
  21. <link href="index.html#Top" rel="start" title="Top">
  22. <link href="AS-Index.html#AS-Index" rel="index" title="AS Index">
  23. <link href="index.html#SEC_Contents" rel="contents" title="Table of Contents">
  24. <link href="Invoking.html#Invoking" rel="up" title="Invoking">
  25. <link href="MD.html#MD" rel="next" title="MD">
  26. <link href="listing.html#listing" rel="prev" title="listing">
  27. <style type="text/css">
  28. <!--
  29. a.summary-letter {text-decoration: none}
  30. blockquote.indentedblock {margin-right: 0em}
  31. blockquote.smallindentedblock {margin-right: 0em; font-size: smaller}
  32. blockquote.smallquotation {font-size: smaller}
  33. div.display {margin-left: 3.2em}
  34. div.example {margin-left: 3.2em}
  35. div.lisp {margin-left: 3.2em}
  36. div.smalldisplay {margin-left: 3.2em}
  37. div.smallexample {margin-left: 3.2em}
  38. div.smalllisp {margin-left: 3.2em}
  39. kbd {font-style: oblique}
  40. pre.display {font-family: inherit}
  41. pre.format {font-family: inherit}
  42. pre.menu-comment {font-family: serif}
  43. pre.menu-preformatted {font-family: serif}
  44. pre.smalldisplay {font-family: inherit; font-size: smaller}
  45. pre.smallexample {font-size: smaller}
  46. pre.smallformat {font-family: inherit; font-size: smaller}
  47. pre.smalllisp {font-size: smaller}
  48. span.nolinebreak {white-space: nowrap}
  49. span.roman {font-family: initial; font-weight: normal}
  50. span.sansserif {font-family: sans-serif; font-weight: normal}
  51. ul.no-bullet {list-style: none}
  52. -->
  53. </style>
  54. </head>
  55. <body lang="en">
  56. <a name="M"></a>
  57. <div class="header">
  58. <p>
  59. Next: <a href="MD.html#MD" accesskey="n" rel="next">MD</a>, Previous: <a href="listing.html#listing" accesskey="p" rel="prev">listing</a>, Up: <a href="Invoking.html#Invoking" accesskey="u" rel="up">Invoking</a> &nbsp; [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="AS-Index.html#AS-Index" title="Index" rel="index">Index</a>]</p>
  60. </div>
  61. <hr>
  62. <a name="Assemble-in-MRI-Compatibility-Mode_003a-_002dM"></a>
  63. <h3 class="section">2.9 Assemble in MRI Compatibility Mode: <samp>-M</samp></h3>
  64. <a name="index-_002dM"></a>
  65. <a name="index-MRI-compatibility-mode"></a>
  66. <p>The <samp>-M</samp> or <samp>--mri</samp> option selects MRI compatibility mode. This
  67. changes the syntax and pseudo-op handling of <code>as</code> to make it
  68. compatible with the <code>ASM68K</code> assembler from Microtec Research.
  69. The exact nature of the
  70. MRI syntax will not be documented here; see the MRI manuals for more
  71. information. Note in particular that the handling of macros and macro
  72. arguments is somewhat different. The purpose of this option is to permit
  73. assembling existing MRI assembler code using <code>as</code>.
  74. </p>
  75. <p>The MRI compatibility is not complete. Certain operations of the MRI assembler
  76. depend upon its object file format, and can not be supported using other object
  77. file formats. Supporting these would require enhancing each object file format
  78. individually. These are:
  79. </p>
  80. <ul>
  81. <li> global symbols in common section
  82. <p>The m68k MRI assembler supports common sections which are merged by the linker.
  83. Other object file formats do not support this. <code>as</code> handles
  84. common sections by treating them as a single common symbol. It permits local
  85. symbols to be defined within a common section, but it can not support global
  86. symbols, since it has no way to describe them.
  87. </p>
  88. </li><li> complex relocations
  89. <p>The MRI assemblers support relocations against a negated section address, and
  90. relocations which combine the start addresses of two or more sections. These
  91. are not support by other object file formats.
  92. </p>
  93. </li><li> <code>END</code> pseudo-op specifying start address
  94. <p>The MRI <code>END</code> pseudo-op permits the specification of a start address.
  95. This is not supported by other object file formats. The start address may
  96. instead be specified using the <samp>-e</samp> option to the linker, or in a linker
  97. script.
  98. </p>
  99. </li><li> <code>IDNT</code>, <code>.ident</code> and <code>NAME</code> pseudo-ops
  100. <p>The MRI <code>IDNT</code>, <code>.ident</code> and <code>NAME</code> pseudo-ops assign a module
  101. name to the output file. This is not supported by other object file formats.
  102. </p>
  103. </li><li> <code>ORG</code> pseudo-op
  104. <p>The m68k MRI <code>ORG</code> pseudo-op begins an absolute section at a given
  105. address. This differs from the usual <code>as</code> <code>.org</code> pseudo-op,
  106. which changes the location within the current section. Absolute sections are
  107. not supported by other object file formats. The address of a section may be
  108. assigned within a linker script.
  109. </p></li></ul>
  110. <p>There are some other features of the MRI assembler which are not supported by
  111. <code>as</code>, typically either because they are difficult or because they
  112. seem of little consequence. Some of these may be supported in future releases.
  113. </p>
  114. <ul>
  115. <li> EBCDIC strings
  116. <p>EBCDIC strings are not supported.
  117. </p>
  118. </li><li> packed binary coded decimal
  119. <p>Packed binary coded decimal is not supported. This means that the <code>DC.P</code>
  120. and <code>DCB.P</code> pseudo-ops are not supported.
  121. </p>
  122. </li><li> <code>FEQU</code> pseudo-op
  123. <p>The m68k <code>FEQU</code> pseudo-op is not supported.
  124. </p>
  125. </li><li> <code>NOOBJ</code> pseudo-op
  126. <p>The m68k <code>NOOBJ</code> pseudo-op is not supported.
  127. </p>
  128. </li><li> <code>OPT</code> branch control options
  129. <p>The m68k <code>OPT</code> branch control options&mdash;<code>B</code>, <code>BRS</code>, <code>BRB</code>,
  130. <code>BRL</code>, and <code>BRW</code>&mdash;are ignored. <code>as</code> automatically
  131. relaxes all branches, whether forward or backward, to an appropriate size, so
  132. these options serve no purpose.
  133. </p>
  134. </li><li> <code>OPT</code> list control options
  135. <p>The following m68k <code>OPT</code> list control options are ignored: <code>C</code>,
  136. <code>CEX</code>, <code>CL</code>, <code>CRE</code>, <code>E</code>, <code>G</code>, <code>I</code>, <code>M</code>,
  137. <code>MEX</code>, <code>MC</code>, <code>MD</code>, <code>X</code>.
  138. </p>
  139. </li><li> other <code>OPT</code> options
  140. <p>The following m68k <code>OPT</code> options are ignored: <code>NEST</code>, <code>O</code>,
  141. <code>OLD</code>, <code>OP</code>, <code>P</code>, <code>PCO</code>, <code>PCR</code>, <code>PCS</code>, <code>R</code>.
  142. </p>
  143. </li><li> <code>OPT</code> <code>D</code> option is default
  144. <p>The m68k <code>OPT</code> <code>D</code> option is the default, unlike the MRI assembler.
  145. <code>OPT NOD</code> may be used to turn it off.
  146. </p>
  147. </li><li> <code>XREF</code> pseudo-op.
  148. <p>The m68k <code>XREF</code> pseudo-op is ignored.
  149. </p>
  150. </li></ul>
  151. <hr>
  152. <div class="header">
  153. <p>
  154. Next: <a href="MD.html#MD" accesskey="n" rel="next">MD</a>, Previous: <a href="listing.html#listing" accesskey="p" rel="prev">listing</a>, Up: <a href="Invoking.html#Invoking" accesskey="u" rel="up">Invoking</a> &nbsp; [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="AS-Index.html#AS-Index" title="Index" rel="index">Index</a>]</p>
  155. </div>
  156. </body>
  157. </html>