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.

152 lines
6.0KB

  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>SCORE-Pseudo (Using as)</title>
  16. <meta name="description" content="SCORE-Pseudo (Using as)">
  17. <meta name="keywords" content="SCORE-Pseudo (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="SCORE_002dDependent.html#SCORE_002dDependent" rel="up" title="SCORE-Dependent">
  25. <link href="SCORE_002dSyntax.html#SCORE_002dSyntax" rel="next" title="SCORE-Syntax">
  26. <link href="SCORE_002dOpts.html#SCORE_002dOpts" rel="prev" title="SCORE-Opts">
  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="SCORE_002dPseudo"></a>
  57. <div class="header">
  58. <p>
  59. Next: <a href="SCORE_002dSyntax.html#SCORE_002dSyntax" accesskey="n" rel="next">SCORE-Syntax</a>, Previous: <a href="SCORE_002dOpts.html#SCORE_002dOpts" accesskey="p" rel="prev">SCORE-Opts</a>, Up: <a href="SCORE_002dDependent.html#SCORE_002dDependent" accesskey="u" rel="up">SCORE-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>
  60. </div>
  61. <hr>
  62. <a name="SCORE-Assembler-Directives"></a>
  63. <h4 class="subsection">9.42.2 SCORE Assembler Directives</h4>
  64. <a name="index-directives-for-SCORE"></a>
  65. <a name="index-SCORE-directives"></a>
  66. <p>A number of assembler directives are available for SCORE. The
  67. following table is far from complete.
  68. </p>
  69. <dl compact="compact">
  70. <dt><code>.set nwarn</code></dt>
  71. <dd><p>Let the assembler not to generate warnings if the source machine
  72. language instructions happen data dependency.
  73. </p>
  74. </dd>
  75. <dt><code>.set fixdd</code></dt>
  76. <dd><p>Let the assembler to insert bubbles (32 bit nop instruction /
  77. 16 bit nop! Instruction) if the source machine language instructions
  78. happen data dependency.
  79. </p>
  80. </dd>
  81. <dt><code>.set nofixdd</code></dt>
  82. <dd><p>Let the assembler to generate warnings if the source machine
  83. language instructions happen data dependency. (Default)
  84. </p>
  85. </dd>
  86. <dt><code>.set r1</code></dt>
  87. <dd><p>Let the assembler not to generate warnings if the source program
  88. uses r1. allow user to use r1
  89. </p>
  90. </dd>
  91. <dt><code>set nor1</code></dt>
  92. <dd><p>Let the assembler to generate warnings if the source program uses
  93. r1. (Default)
  94. </p>
  95. </dd>
  96. <dt><code>.sdata</code></dt>
  97. <dd><p>Tell the assembler to add subsequent data into the sdata section
  98. </p>
  99. </dd>
  100. <dt><code>.rdata</code></dt>
  101. <dd><p>Tell the assembler to add subsequent data into the rdata section
  102. </p>
  103. </dd>
  104. <dt><code>.frame &quot;frame-register&quot;, &quot;offset&quot;, &quot;return-pc-register&quot;</code></dt>
  105. <dd><p>Describe a stack frame. &quot;frame-register&quot; is the frame register,
  106. &quot;offset&quot; is the distance from the frame register to the virtual
  107. frame pointer, &quot;return-pc-register&quot; is the return program register.
  108. You must use &quot;.ent&quot; before &quot;.frame&quot; and only one &quot;.frame&quot; can be
  109. used per &quot;.ent&quot;.
  110. </p>
  111. </dd>
  112. <dt><code>.mask &quot;bitmask&quot;, &quot;frameoffset&quot;</code></dt>
  113. <dd><p>Indicate which of the integer registers are saved in the current
  114. function&rsquo;s stack frame, this is for the debugger to explain the
  115. frame chain.
  116. </p>
  117. </dd>
  118. <dt><code>.ent &quot;proc-name&quot;</code></dt>
  119. <dd><p>Set the beginning of the procedure &quot;proc_name&quot;. Use this directive
  120. when you want to generate information for the debugger.
  121. </p>
  122. </dd>
  123. <dt><code>.end proc-name</code></dt>
  124. <dd><p>Set the end of a procedure. Use this directive to generate information
  125. for the debugger.
  126. </p>
  127. </dd>
  128. <dt><code>.bss</code></dt>
  129. <dd><p>Switch the destination of following statements into the bss section,
  130. which is used for data that is uninitialized anywhere.
  131. </p>
  132. </dd>
  133. </dl>
  134. <hr>
  135. <div class="header">
  136. <p>
  137. Next: <a href="SCORE_002dSyntax.html#SCORE_002dSyntax" accesskey="n" rel="next">SCORE-Syntax</a>, Previous: <a href="SCORE_002dOpts.html#SCORE_002dOpts" accesskey="p" rel="prev">SCORE-Opts</a>, Up: <a href="SCORE_002dDependent.html#SCORE_002dDependent" accesskey="u" rel="up">SCORE-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>
  138. </div>
  139. </body>
  140. </html>