d10v-word.html

来自「gcc手册」· HTML 代码 · 共 31 行

HTML
31
字号
<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="D10V-Word">D10V-Word</a>,

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

Up:<a rel="up" accesskey="u" href="D10V-Syntax.html#D10V-Syntax">D10V-Syntax</a>

<hr><br>

</div>



<h5 class="subsection">@WORD Modifier</h5>



   <p>Any symbol followed by <code>@word</code> will be replaced by the symbol's value

shifted right by 2.  This is used in situations such as loading a register

with the address of a function (or any other code fragment).  For example, if

you want to load a register with the location of the function <code>main</code> then

jump to that function, you could do it as follws:

<pre class="smallexample">     ldi     r2, main@word

     jmp     r2

     </pre>



   </body></html>



⌨️ 快捷键说明

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