PDP_002d11_002dOptions.html 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387
  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-2017 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 5.2, http://www.gnu.org/software/texinfo/ -->
  13. <head>
  14. <title>Using as: PDP-11-Options</title>
  15. <meta name="description" content="Using as: PDP-11-Options">
  16. <meta name="keywords" content="Using as: PDP-11-Options">
  17. <meta name="resource-type" content="document">
  18. <meta name="distribution" content="global">
  19. <meta name="Generator" content="makeinfo">
  20. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  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="PDP_002d11_002dDependent.html#PDP_002d11_002dDependent" rel="up" title="PDP-11-Dependent">
  25. <link href="PDP_002d11_002dPseudos.html#PDP_002d11_002dPseudos" rel="next" title="PDP-11-Pseudos">
  26. <link href="PDP_002d11_002dDependent.html#PDP_002d11_002dDependent" rel="prev" title="PDP-11-Dependent">
  27. <style type="text/css">
  28. <!--
  29. a.summary-letter {text-decoration: none}
  30. blockquote.smallquotation {font-size: smaller}
  31. div.display {margin-left: 3.2em}
  32. div.example {margin-left: 3.2em}
  33. div.indentedblock {margin-left: 3.2em}
  34. div.lisp {margin-left: 3.2em}
  35. div.smalldisplay {margin-left: 3.2em}
  36. div.smallexample {margin-left: 3.2em}
  37. div.smallindentedblock {margin-left: 3.2em; font-size: smaller}
  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.nocodebreak {white-space:nowrap}
  49. span.nolinebreak {white-space:nowrap}
  50. span.roman {font-family:serif; font-weight:normal}
  51. span.sansserif {font-family:sans-serif; font-weight:normal}
  52. ul.no-bullet {list-style: none}
  53. -->
  54. </style>
  55. </head>
  56. <body lang="en" bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#800080" alink="#FF0000">
  57. <a name="PDP_002d11_002dOptions"></a>
  58. <div class="header">
  59. <p>
  60. Next: <a href="PDP_002d11_002dPseudos.html#PDP_002d11_002dPseudos" accesskey="n" rel="next">PDP-11-Pseudos</a>, Up: <a href="PDP_002d11_002dDependent.html#PDP_002d11_002dDependent" accesskey="u" rel="up">PDP-11-Dependent</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>
  61. </div>
  62. <hr>
  63. <a name="Options-16"></a>
  64. <h4 class="subsection">9.33.1 Options</h4>
  65. <a name="index-options-for-PDP_002d11"></a>
  66. <p>The PDP-11 version of <code>as</code> has a rich set of machine
  67. dependent options.
  68. </p>
  69. <a name="Code-Generation-Options"></a>
  70. <h4 class="subsubsection">9.33.1.1 Code Generation Options</h4>
  71. <dl compact="compact">
  72. <dd><a name="index-_002dmpic"></a>
  73. <a name="index-_002dmno_002dpic"></a>
  74. </dd>
  75. <dt><code>-mpic | -mno-pic</code></dt>
  76. <dd><p>Generate position-independent (or position-dependent) code.
  77. </p>
  78. <p>The default is to generate position-independent code.
  79. </p></dd>
  80. </dl>
  81. <a name="Instruction-Set-Extension-Options"></a>
  82. <h4 class="subsubsection">9.33.1.2 Instruction Set Extension Options</h4>
  83. <p>These options enables or disables the use of extensions over the base
  84. line instruction set as introduced by the first PDP-11 CPU: the KA11.
  85. Most options come in two variants: a <code>-m</code><var>extension</var> that
  86. enables <var>extension</var>, and a <code>-mno-</code><var>extension</var> that disables
  87. <var>extension</var>.
  88. </p>
  89. <p>The default is to enable all extensions.
  90. </p>
  91. <dl compact="compact">
  92. <dd><a name="index-_002dmall"></a>
  93. <a name="index-_002dmall_002dextensions"></a>
  94. </dd>
  95. <dt><code>-mall | -mall-extensions</code></dt>
  96. <dd><p>Enable all instruction set extensions.
  97. </p>
  98. <a name="index-_002dmno_002dextensions"></a>
  99. </dd>
  100. <dt><code>-mno-extensions</code></dt>
  101. <dd><p>Disable all instruction set extensions.
  102. </p>
  103. <a name="index-_002dmcis"></a>
  104. <a name="index-_002dmno_002dcis"></a>
  105. </dd>
  106. <dt><code>-mcis | -mno-cis</code></dt>
  107. <dd><p>Enable (or disable) the use of the commercial instruction set, which
  108. consists of these instructions: <code>ADDNI</code>, <code>ADDN</code>, <code>ADDPI</code>,
  109. <code>ADDP</code>, <code>ASHNI</code>, <code>ASHN</code>, <code>ASHPI</code>, <code>ASHP</code>,
  110. <code>CMPCI</code>, <code>CMPC</code>, <code>CMPNI</code>, <code>CMPN</code>, <code>CMPPI</code>,
  111. <code>CMPP</code>, <code>CVTLNI</code>, <code>CVTLN</code>, <code>CVTLPI</code>, <code>CVTLP</code>,
  112. <code>CVTNLI</code>, <code>CVTNL</code>, <code>CVTNPI</code>, <code>CVTNP</code>, <code>CVTPLI</code>,
  113. <code>CVTPL</code>, <code>CVTPNI</code>, <code>CVTPN</code>, <code>DIVPI</code>, <code>DIVP</code>,
  114. <code>L2DR</code>, <code>L3DR</code>, <code>LOCCI</code>, <code>LOCC</code>, <code>MATCI</code>,
  115. <code>MATC</code>, <code>MOVCI</code>, <code>MOVC</code>, <code>MOVRCI</code>, <code>MOVRC</code>,
  116. <code>MOVTCI</code>, <code>MOVTC</code>, <code>MULPI</code>, <code>MULP</code>, <code>SCANCI</code>,
  117. <code>SCANC</code>, <code>SKPCI</code>, <code>SKPC</code>, <code>SPANCI</code>, <code>SPANC</code>,
  118. <code>SUBNI</code>, <code>SUBN</code>, <code>SUBPI</code>, and <code>SUBP</code>.
  119. </p>
  120. <a name="index-_002dmcsm"></a>
  121. <a name="index-_002dmno_002dcsm"></a>
  122. </dd>
  123. <dt><code>-mcsm | -mno-csm</code></dt>
  124. <dd><p>Enable (or disable) the use of the <code>CSM</code> instruction.
  125. </p>
  126. <a name="index-_002dmeis"></a>
  127. <a name="index-_002dmno_002deis"></a>
  128. </dd>
  129. <dt><code>-meis | -mno-eis</code></dt>
  130. <dd><p>Enable (or disable) the use of the extended instruction set, which
  131. consists of these instructions: <code>ASHC</code>, <code>ASH</code>, <code>DIV</code>,
  132. <code>MARK</code>, <code>MUL</code>, <code>RTT</code>, <code>SOB</code> <code>SXT</code>, and
  133. <code>XOR</code>.
  134. </p>
  135. <a name="index-_002dmfis"></a>
  136. <a name="index-_002dmno_002dfis"></a>
  137. <a name="index-_002dmkev11"></a>
  138. <a name="index-_002dmkev11-1"></a>
  139. <a name="index-_002dmno_002dkev11"></a>
  140. </dd>
  141. <dt><code>-mfis | -mkev11</code></dt>
  142. <dt><code>-mno-fis | -mno-kev11</code></dt>
  143. <dd><p>Enable (or disable) the use of the KEV11 floating-point instructions:
  144. <code>FADD</code>, <code>FDIV</code>, <code>FMUL</code>, and <code>FSUB</code>.
  145. </p>
  146. <a name="index-_002dmfpp"></a>
  147. <a name="index-_002dmno_002dfpp"></a>
  148. <a name="index-_002dmfpu"></a>
  149. <a name="index-_002dmno_002dfpu"></a>
  150. <a name="index-_002dmfp_002d11"></a>
  151. <a name="index-_002dmno_002dfp_002d11"></a>
  152. </dd>
  153. <dt><code>-mfpp | -mfpu | -mfp-11</code></dt>
  154. <dt><code>-mno-fpp | -mno-fpu | -mno-fp-11</code></dt>
  155. <dd><p>Enable (or disable) the use of FP-11 floating-point instructions:
  156. <code>ABSF</code>, <code>ADDF</code>, <code>CFCC</code>, <code>CLRF</code>, <code>CMPF</code>,
  157. <code>DIVF</code>, <code>LDCFF</code>, <code>LDCIF</code>, <code>LDEXP</code>, <code>LDF</code>,
  158. <code>LDFPS</code>, <code>MODF</code>, <code>MULF</code>, <code>NEGF</code>, <code>SETD</code>,
  159. <code>SETF</code>, <code>SETI</code>, <code>SETL</code>, <code>STCFF</code>, <code>STCFI</code>,
  160. <code>STEXP</code>, <code>STF</code>, <code>STFPS</code>, <code>STST</code>, <code>SUBF</code>, and
  161. <code>TSTF</code>.
  162. </p>
  163. <a name="index-_002dmlimited_002deis"></a>
  164. <a name="index-_002dmno_002dlimited_002deis"></a>
  165. </dd>
  166. <dt><code>-mlimited-eis | -mno-limited-eis</code></dt>
  167. <dd><p>Enable (or disable) the use of the limited extended instruction set:
  168. <code>MARK</code>, <code>RTT</code>, <code>SOB</code>, <code>SXT</code>, and <code>XOR</code>.
  169. </p>
  170. <p>The -mno-limited-eis options also implies -mno-eis.
  171. </p>
  172. <a name="index-_002dmmfpt"></a>
  173. <a name="index-_002dmno_002dmfpt"></a>
  174. </dd>
  175. <dt><code>-mmfpt | -mno-mfpt</code></dt>
  176. <dd><p>Enable (or disable) the use of the <code>MFPT</code> instruction.
  177. </p>
  178. <a name="index-_002dmmutiproc"></a>
  179. <a name="index-_002dmno_002dmutiproc"></a>
  180. </dd>
  181. <dt><code>-mmultiproc | -mno-multiproc</code></dt>
  182. <dd><p>Enable (or disable) the use of multiprocessor instructions: <code>TSTSET</code> and
  183. <code>WRTLCK</code>.
  184. </p>
  185. <a name="index-_002dmmxps"></a>
  186. <a name="index-_002dmno_002dmxps"></a>
  187. </dd>
  188. <dt><code>-mmxps | -mno-mxps</code></dt>
  189. <dd><p>Enable (or disable) the use of the <code>MFPS</code> and <code>MTPS</code> instructions.
  190. </p>
  191. <a name="index-_002dmspl"></a>
  192. <a name="index-_002dmno_002dspl"></a>
  193. </dd>
  194. <dt><code>-mspl | -mno-spl</code></dt>
  195. <dd><p>Enable (or disable) the use of the <code>SPL</code> instruction.
  196. </p>
  197. <a name="index-_002dmmicrocode"></a>
  198. <a name="index-_002dmno_002dmicrocode"></a>
  199. <p>Enable (or disable) the use of the microcode instructions: <code>LDUB</code>,
  200. <code>MED</code>, and <code>XFC</code>.
  201. </p></dd>
  202. </dl>
  203. <a name="CPU-Model-Options"></a>
  204. <h4 class="subsubsection">9.33.1.3 CPU Model Options</h4>
  205. <p>These options enable the instruction set extensions supported by a
  206. particular CPU, and disables all other extensions.
  207. </p>
  208. <dl compact="compact">
  209. <dd><a name="index-_002dmka11"></a>
  210. </dd>
  211. <dt><code>-mka11</code></dt>
  212. <dd><p>KA11 CPU. Base line instruction set only.
  213. </p>
  214. <a name="index-_002dmkb11"></a>
  215. </dd>
  216. <dt><code>-mkb11</code></dt>
  217. <dd><p>KB11 CPU. Enable extended instruction set and <code>SPL</code>.
  218. </p>
  219. <a name="index-_002dmkd11a"></a>
  220. </dd>
  221. <dt><code>-mkd11a</code></dt>
  222. <dd><p>KD11-A CPU. Enable limited extended instruction set.
  223. </p>
  224. <a name="index-_002dmkd11b"></a>
  225. </dd>
  226. <dt><code>-mkd11b</code></dt>
  227. <dd><p>KD11-B CPU. Base line instruction set only.
  228. </p>
  229. <a name="index-_002dmkd11d"></a>
  230. </dd>
  231. <dt><code>-mkd11d</code></dt>
  232. <dd><p>KD11-D CPU. Base line instruction set only.
  233. </p>
  234. <a name="index-_002dmkd11e"></a>
  235. </dd>
  236. <dt><code>-mkd11e</code></dt>
  237. <dd><p>KD11-E CPU. Enable extended instruction set, <code>MFPS</code>, and <code>MTPS</code>.
  238. </p>
  239. <a name="index-_002dmkd11f"></a>
  240. <a name="index-_002dmkd11h"></a>
  241. <a name="index-_002dmkd11q"></a>
  242. </dd>
  243. <dt><code>-mkd11f | -mkd11h | -mkd11q</code></dt>
  244. <dd><p>KD11-F, KD11-H, or KD11-Q CPU. Enable limited extended instruction set,
  245. <code>MFPS</code>, and <code>MTPS</code>.
  246. </p>
  247. <a name="index-_002dmkd11k"></a>
  248. </dd>
  249. <dt><code>-mkd11k</code></dt>
  250. <dd><p>KD11-K CPU. Enable extended instruction set, <code>LDUB</code>, <code>MED</code>,
  251. <code>MFPS</code>, <code>MFPT</code>, <code>MTPS</code>, and <code>XFC</code>.
  252. </p>
  253. <a name="index-_002dmkd11z"></a>
  254. </dd>
  255. <dt><code>-mkd11z</code></dt>
  256. <dd><p>KD11-Z CPU. Enable extended instruction set, <code>CSM</code>, <code>MFPS</code>,
  257. <code>MFPT</code>, <code>MTPS</code>, and <code>SPL</code>.
  258. </p>
  259. <a name="index-_002dmf11"></a>
  260. </dd>
  261. <dt><code>-mf11</code></dt>
  262. <dd><p>F11 CPU. Enable extended instruction set, <code>MFPS</code>, <code>MFPT</code>, and
  263. <code>MTPS</code>.
  264. </p>
  265. <a name="index-_002dmj11"></a>
  266. </dd>
  267. <dt><code>-mj11</code></dt>
  268. <dd><p>J11 CPU. Enable extended instruction set, <code>CSM</code>, <code>MFPS</code>,
  269. <code>MFPT</code>, <code>MTPS</code>, <code>SPL</code>, <code>TSTSET</code>, and <code>WRTLCK</code>.
  270. </p>
  271. <a name="index-_002dmt11"></a>
  272. </dd>
  273. <dt><code>-mt11</code></dt>
  274. <dd><p>T11 CPU. Enable limited extended instruction set, <code>MFPS</code>, and
  275. <code>MTPS</code>.
  276. </p></dd>
  277. </dl>
  278. <a name="Machine-Model-Options"></a>
  279. <h4 class="subsubsection">9.33.1.4 Machine Model Options</h4>
  280. <p>These options enable the instruction set extensions supported by a
  281. particular machine model, and disables all other extensions.
  282. </p>
  283. <dl compact="compact">
  284. <dd><a name="index-_002dm11_002f03"></a>
  285. </dd>
  286. <dt><code>-m11/03</code></dt>
  287. <dd><p>Same as <code>-mkd11f</code>.
  288. </p>
  289. <a name="index-_002dm11_002f04"></a>
  290. </dd>
  291. <dt><code>-m11/04</code></dt>
  292. <dd><p>Same as <code>-mkd11d</code>.
  293. </p>
  294. <a name="index-_002dm11_002f05"></a>
  295. <a name="index-_002dm11_002f10"></a>
  296. </dd>
  297. <dt><code>-m11/05 | -m11/10</code></dt>
  298. <dd><p>Same as <code>-mkd11b</code>.
  299. </p>
  300. <a name="index-_002dm11_002f15"></a>
  301. <a name="index-_002dm11_002f20"></a>
  302. </dd>
  303. <dt><code>-m11/15 | -m11/20</code></dt>
  304. <dd><p>Same as <code>-mka11</code>.
  305. </p>
  306. <a name="index-_002dm11_002f21"></a>
  307. </dd>
  308. <dt><code>-m11/21</code></dt>
  309. <dd><p>Same as <code>-mt11</code>.
  310. </p>
  311. <a name="index-_002dm11_002f23"></a>
  312. <a name="index-_002dm11_002f24"></a>
  313. </dd>
  314. <dt><code>-m11/23 | -m11/24</code></dt>
  315. <dd><p>Same as <code>-mf11</code>.
  316. </p>
  317. <a name="index-_002dm11_002f34"></a>
  318. </dd>
  319. <dt><code>-m11/34</code></dt>
  320. <dd><p>Same as <code>-mkd11e</code>.
  321. </p>
  322. <a name="index-_002dm11_002f34a"></a>
  323. </dd>
  324. <dt><code>-m11/34a</code></dt>
  325. <dd><p>Ame as <code>-mkd11e</code> <code>-mfpp</code>.
  326. </p>
  327. <a name="index-_002dm11_002f35"></a>
  328. <a name="index-_002dm11_002f40"></a>
  329. </dd>
  330. <dt><code>-m11/35 | -m11/40</code></dt>
  331. <dd><p>Same as <code>-mkd11a</code>.
  332. </p>
  333. <a name="index-_002dm11_002f44"></a>
  334. </dd>
  335. <dt><code>-m11/44</code></dt>
  336. <dd><p>Same as <code>-mkd11z</code>.
  337. </p>
  338. <a name="index-_002dm11_002f45"></a>
  339. <a name="index-_002dm11_002f50"></a>
  340. <a name="index-_002dm11_002f55"></a>
  341. <a name="index-_002dm11_002f70"></a>
  342. </dd>
  343. <dt><code>-m11/45 | -m11/50 | -m11/55 | -m11/70</code></dt>
  344. <dd><p>Same as <code>-mkb11</code>.
  345. </p>
  346. <a name="index-_002dm11_002f53"></a>
  347. <a name="index-_002dm11_002f73"></a>
  348. <a name="index-_002dm11_002f83"></a>
  349. <a name="index-_002dm11_002f84"></a>
  350. <a name="index-_002dm11_002f93"></a>
  351. <a name="index-_002dm11_002f94"></a>
  352. </dd>
  353. <dt><code>-m11/53 | -m11/73 | -m11/83 | -m11/84 | -m11/93 | -m11/94</code></dt>
  354. <dd><p>Same as <code>-mj11</code>.
  355. </p>
  356. <a name="index-_002dm11_002f60"></a>
  357. </dd>
  358. <dt><code>-m11/60</code></dt>
  359. <dd><p>Same as <code>-mkd11k</code>.
  360. </p></dd>
  361. </dl>
  362. <hr>
  363. <div class="header">
  364. <p>
  365. Next: <a href="PDP_002d11_002dPseudos.html#PDP_002d11_002dPseudos" accesskey="n" rel="next">PDP-11-Pseudos</a>, Up: <a href="PDP_002d11_002dDependent.html#PDP_002d11_002dDependent" accesskey="u" rel="up">PDP-11-Dependent</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>
  366. </div>
  367. </body>
  368. </html>