Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

266 lines
9.8KB

  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>ARC-Regs (Using as)</title>
  16. <meta name="description" content="ARC-Regs (Using as)">
  17. <meta name="keywords" content="ARC-Regs (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="ARC-Syntax.html#ARC-Syntax" rel="up" title="ARC Syntax">
  25. <link href="ARC-Directives.html#ARC-Directives" rel="next" title="ARC Directives">
  26. <link href="ARC_002dChars.html#ARC_002dChars" rel="prev" title="ARC-Chars">
  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="ARC_002dRegs"></a>
  57. <div class="header">
  58. <p>
  59. Previous: <a href="ARC_002dChars.html#ARC_002dChars" accesskey="p" rel="prev">ARC-Chars</a>, Up: <a href="ARC-Syntax.html#ARC-Syntax" accesskey="u" rel="up">ARC Syntax</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="Register-Names-2"></a>
  63. <h4 class="subsubsection">9.3.2.2 Register Names</h4>
  64. <a name="index-ARC-register-names"></a>
  65. <a name="index-register-names_002c-ARC"></a>
  66. <p>The ARC assembler uses the following register names for its core
  67. registers:
  68. </p>
  69. <dl compact="compact">
  70. <dt><code>r0-r31</code></dt>
  71. <dd><a name="index-core-general-registers_002c-ARC"></a>
  72. <a name="index-ARC-core-general-registers"></a>
  73. <p>The core general registers. Registers <code>r26</code> through <code>r31</code>
  74. have special functions, and are usually referred to by those synonyms.
  75. </p>
  76. </dd>
  77. <dt><code>gp</code></dt>
  78. <dd><a name="index-global-pointer_002c-ARC"></a>
  79. <a name="index-ARC-global-pointer"></a>
  80. <p>The global pointer and a synonym for <code>r26</code>.
  81. </p>
  82. </dd>
  83. <dt><code>fp</code></dt>
  84. <dd><a name="index-frame-pointer_002c-ARC"></a>
  85. <a name="index-ARC-frame-pointer"></a>
  86. <p>The frame pointer and a synonym for <code>r27</code>.
  87. </p>
  88. </dd>
  89. <dt><code>sp</code></dt>
  90. <dd><a name="index-stack-pointer_002c-ARC"></a>
  91. <a name="index-ARC-stack-pointer"></a>
  92. <p>The stack pointer and a synonym for <code>r28</code>.
  93. </p>
  94. </dd>
  95. <dt><code>ilink1</code></dt>
  96. <dd><a name="index-level-1-interrupt-link-register_002c-ARC"></a>
  97. <a name="index-ARC-level-1-interrupt-link-register"></a>
  98. <p>For ARC 600 and ARC 700, the level 1 interrupt link register and a
  99. synonym for <code>r29</code>. Not supported for ARCv2.
  100. </p>
  101. </dd>
  102. <dt><code>ilink</code></dt>
  103. <dd><a name="index-interrupt-link-register_002c-ARC"></a>
  104. <a name="index-ARC-interrupt-link-register"></a>
  105. <p>For ARCv2, the interrupt link register and a synonym for <code>r29</code>.
  106. Not supported for ARC 600 and ARC 700.
  107. </p>
  108. </dd>
  109. <dt><code>ilink2</code></dt>
  110. <dd><a name="index-level-2-interrupt-link-register_002c-ARC"></a>
  111. <a name="index-ARC-level-2-interrupt-link-register"></a>
  112. <p>For ARC 600 and ARC 700, the level 2 interrupt link register and a
  113. synonym for <code>r30</code>. Not supported for ARC v2.
  114. </p>
  115. </dd>
  116. <dt><code>blink</code></dt>
  117. <dd><a name="index-link-register_002c-ARC"></a>
  118. <a name="index-ARC-link-register"></a>
  119. <p>The link register and a synonym for <code>r31</code>.
  120. </p>
  121. </dd>
  122. <dt><code>r32-r59</code></dt>
  123. <dd><a name="index-extension-core-registers_002c-ARC"></a>
  124. <a name="index-ARC-extension-core-registers"></a>
  125. <p>The extension core registers.
  126. </p>
  127. </dd>
  128. <dt><code>lp_count</code></dt>
  129. <dd><a name="index-loop-counter_002c-ARC"></a>
  130. <a name="index-ARC-loop-counter"></a>
  131. <p>The loop count register.
  132. </p>
  133. </dd>
  134. <dt><code>pcl</code></dt>
  135. <dd><a name="index-word-aligned-program-counter_002c-ARC"></a>
  136. <a name="index-ARC-word-aligned-program-counter"></a>
  137. <p>The word aligned program counter.
  138. </p>
  139. </dd>
  140. </dl>
  141. <p>In addition the ARC processor has a large number of <em>auxiliary
  142. registers</em>. The precise set depends on the extensions being
  143. supported, but the following baseline set are always defined:
  144. </p>
  145. <dl compact="compact">
  146. <dt><code>identity</code></dt>
  147. <dd><a name="index-Processor-Identification-register_002c-ARC"></a>
  148. <a name="index-ARC-Processor-Identification-register"></a>
  149. <p>Processor Identification register. Auxiliary register address 0x4.
  150. </p>
  151. </dd>
  152. <dt><code>pc</code></dt>
  153. <dd><a name="index-Program-Counter_002c-ARC"></a>
  154. <a name="index-ARC-Program-Counter"></a>
  155. <p>Program Counter. Auxiliary register address 0x6.
  156. </p>
  157. </dd>
  158. <dt><code>status32</code></dt>
  159. <dd><a name="index-Status-register_002c-ARC"></a>
  160. <a name="index-ARC-Status-register"></a>
  161. <p>Status register. Auxiliary register address 0x0a.
  162. </p>
  163. </dd>
  164. <dt><code>bta</code></dt>
  165. <dd><a name="index-Branch-Target-Address_002c-ARC"></a>
  166. <a name="index-ARC-Branch-Target-Address"></a>
  167. <p>Branch Target Address. Auxiliary register address 0x412.
  168. </p>
  169. </dd>
  170. <dt><code>ecr</code></dt>
  171. <dd><a name="index-Exception-Cause-Register_002c-ARC"></a>
  172. <a name="index-ARC-Exception-Cause-Register"></a>
  173. <p>Exception Cause Register. Auxiliary register address 0x403.
  174. </p>
  175. </dd>
  176. <dt><code>int_vector_base</code></dt>
  177. <dd><a name="index-Interrupt-Vector-Base-address_002c-ARC"></a>
  178. <a name="index-ARC-Interrupt-Vector-Base-address"></a>
  179. <p>Interrupt Vector Base address. Auxiliary register address 0x25.
  180. </p>
  181. </dd>
  182. <dt><code>status32_p0</code></dt>
  183. <dd><a name="index-Stored-STATUS32-register-on-entry-to-level-P0-interrupts_002c-ARC"></a>
  184. <a name="index-ARC-Stored-STATUS32-register-on-entry-to-level-P0-interrupts"></a>
  185. <p>Stored STATUS32 register on entry to level P0 interrupts. Auxiliary
  186. register address 0xb.
  187. </p>
  188. </dd>
  189. <dt><code>aux_user_sp</code></dt>
  190. <dd><a name="index-Saved-User-Stack-Pointer_002c-ARC"></a>
  191. <a name="index-ARC-Saved-User-Stack-Pointer"></a>
  192. <p>Saved User Stack Pointer. Auxiliary register address 0xd.
  193. </p>
  194. </dd>
  195. <dt><code>eret</code></dt>
  196. <dd><a name="index-Exception-Return-Address_002c-ARC"></a>
  197. <a name="index-ARC-Exception-Return-Address"></a>
  198. <p>Exception Return Address. Auxiliary register address 0x400.
  199. </p>
  200. </dd>
  201. <dt><code>erbta</code></dt>
  202. <dd><a name="index-BTA-saved-on-exception-entry_002c-ARC"></a>
  203. <a name="index-ARC-BTA-saved-on-exception-entry"></a>
  204. <p>BTA saved on exception entry. Auxiliary register address 0x401.
  205. </p>
  206. </dd>
  207. <dt><code>erstatus</code></dt>
  208. <dd><a name="index-STATUS32-saved-on-exception_002c-ARC"></a>
  209. <a name="index-ARC-STATUS32-saved-on-exception"></a>
  210. <p>STATUS32 saved on exception. Auxiliary register address 0x402.
  211. </p>
  212. </dd>
  213. <dt><code>bcr_ver</code></dt>
  214. <dd><a name="index-Build-Configuration-Registers-Version_002c-ARC"></a>
  215. <a name="index-ARC-Build-Configuration-Registers-Version"></a>
  216. <p>Build Configuration Registers Version. Auxiliary register address 0x60.
  217. </p>
  218. </dd>
  219. <dt><code>bta_link_build</code></dt>
  220. <dd><a name="index-Build-configuration-for_003a-BTA-Registers_002c-ARC"></a>
  221. <a name="index-ARC-Build-configuration-for_003a-BTA-Registers"></a>
  222. <p>Build configuration for: BTA Registers. Auxiliary register address 0x63.
  223. </p>
  224. </dd>
  225. <dt><code>vecbase_ac_build</code></dt>
  226. <dd><a name="index-Build-configuration-for_003a-Interrupts_002c-ARC"></a>
  227. <a name="index-ARC-Build-configuration-for_003a-Interrupts"></a>
  228. <p>Build configuration for: Interrupts. Auxiliary register address 0x68.
  229. </p>
  230. </dd>
  231. <dt><code>rf_build</code></dt>
  232. <dd><a name="index-Build-configuration-for_003a-Core-Registers_002c-ARC"></a>
  233. <a name="index-ARC-Build-configuration-for_003a-Core-Registers"></a>
  234. <p>Build configuration for: Core Registers. Auxiliary register address 0x6e.
  235. </p>
  236. </dd>
  237. <dt><code>dccm_build</code></dt>
  238. <dd><a name="index-DCCM-RAM-Configuration-Register_002c-ARC"></a>
  239. <a name="index-ARC-DCCM-RAM-Configuration-Register"></a>
  240. <p>DCCM RAM Configuration Register. Auxiliary register address 0xc1.
  241. </p>
  242. </dd>
  243. </dl>
  244. <p>Additional auxiliary register names are defined according to the
  245. processor architecture version and extensions selected by the options.
  246. </p>
  247. <hr>
  248. <div class="header">
  249. <p>
  250. Previous: <a href="ARC_002dChars.html#ARC_002dChars" accesskey="p" rel="prev">ARC-Chars</a>, Up: <a href="ARC-Syntax.html#ARC-Syntax" accesskey="u" rel="up">ARC Syntax</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>
  251. </div>
  252. </body>
  253. </html>