⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 org.html

📁 gcc手册
💻 HTML
字号:
<html lang="en">

<head>

<title>Using as</title>

<meta http-equiv="Content-Type" content="text/html">

<meta name="description" content="Using as">

<meta name="generator" content="makeinfo 4.3">

<link href="http://www.gnu.org/software/texinfo/" rel="generator-home">

</head>

<body>

<div class="node">

<p>

Node:<a name="Org">Org</a>,

Next:<a rel="next" accesskey="n" href="P2align.html#P2align">P2align</a>,

Previous:<a rel="previous" accesskey="p" href="Octa.html#Octa">Octa</a>,

Up:<a rel="up" accesskey="u" href="Pseudo-Ops.html#Pseudo%20Ops">Pseudo Ops</a>

<hr><br>

</div>



<h3 class="section"><code>.org </code><var>new-lc</var><code> , </code><var>fill</var><code></code></h3>



   <p>Advance the location counter of the current section to

<var>new-lc</var>.  <var>new-lc</var> is either an absolute expression or an

expression with the same section as the current subsection.  That is,

you can't use <code>.org</code> to cross sections: if <var>new-lc</var> has the

wrong section, the <code>.org</code> directive is ignored.  To be compatible

with former assemblers, if the section of <var>new-lc</var> is absolute,

<code>as</code> issues a warning, then pretends the section of <var>new-lc</var>

is the same as the current subsection.



   <p><code>.org</code> may only increase the location counter, or leave it

unchanged; you cannot use <code>.org</code> to move the location counter

backwards.



   <p>Because <code>as</code> tries to assemble programs in one pass, <var>new-lc</var>

may not be undefined.  If you really detest this restriction we eagerly await

a chance to share your improved assembler.



   <p>Beware that the origin is relative to the start of the section, not

to the start of the subsection.  This is compatible with other

people's assemblers.



   <p>When the location counter (of the current subsection) is advanced, the

intervening bytes are filled with <var>fill</var> which should be an

absolute expression.  If the comma and <var>fill</var> are omitted,

<var>fill</var> defaults to zero.



   </body></html>



⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -