You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

3 vuotta sitten
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  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>Org (Using as)</title>
  16. <meta name="description" content="Org (Using as)">
  17. <meta name="keywords" content="Org (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="Pseudo-Ops.html#Pseudo-Ops" rel="up" title="Pseudo Ops">
  25. <link href="P2align.html#P2align" rel="next" title="P2align">
  26. <link href="Offset.html#Offset" rel="prev" title="Offset">
  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="Org"></a>
  57. <div class="header">
  58. <p>
  59. Next: <a href="P2align.html#P2align" accesskey="n" rel="next">P2align</a>, Previous: <a href="Offset.html#Offset" accesskey="p" rel="prev">Offset</a>, Up: <a href="Pseudo-Ops.html#Pseudo-Ops" accesskey="u" rel="up">Pseudo Ops</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="g_t_002eorg-new_002dlc-_002c-fill"></a>
  63. <h3 class="section">7.69 <code>.org <var>new-lc</var> , <var>fill</var></code></h3>
  64. <a name="index-org-directive"></a>
  65. <a name="index-location-counter_002c-advancing"></a>
  66. <a name="index-advancing-location-counter"></a>
  67. <a name="index-current-address_002c-advancing"></a>
  68. <p>Advance the location counter of the current section to
  69. <var>new-lc</var>. <var>new-lc</var> is either an absolute expression or an
  70. expression with the same section as the current subsection. That is,
  71. you can&rsquo;t use <code>.org</code> to cross sections: if <var>new-lc</var> has the
  72. wrong section, the <code>.org</code> directive is ignored. To be compatible
  73. with former assemblers, if the section of <var>new-lc</var> is absolute,
  74. <code>as</code> issues a warning, then pretends the section of <var>new-lc</var>
  75. is the same as the current subsection.
  76. </p>
  77. <p><code>.org</code> may only increase the location counter, or leave it
  78. unchanged; you cannot use <code>.org</code> to move the location counter
  79. backwards.
  80. </p>
  81. <p>Because <code>as</code> tries to assemble programs in one pass, <var>new-lc</var>
  82. may not be undefined. If you really detest this restriction we eagerly await
  83. a chance to share your improved assembler.
  84. </p>
  85. <p>Beware that the origin is relative to the start of the section, not
  86. to the start of the subsection. This is compatible with other
  87. people&rsquo;s assemblers.
  88. </p>
  89. <p>When the location counter (of the current subsection) is advanced, the
  90. intervening bytes are filled with <var>fill</var> which should be an
  91. absolute expression. If the comma and <var>fill</var> are omitted,
  92. <var>fill</var> defaults to zero.
  93. </p>
  94. </body>
  95. </html>