blob: 516711a388a77b5430a65979d2d9fc2024578573 [file] [log] [blame]
<html lang="en">
<head>
<title>D10V-Chars - Using as</title>
<meta http-equiv="Content-Type" content="text/html">
<meta name="description" content="Using as">
<meta name="generator" content="makeinfo 4.13">
<link title="Top" rel="start" href="index.html#Top">
<link rel="up" href="D10V_002dSyntax.html#D10V_002dSyntax" title="D10V-Syntax">
<link rel="prev" href="D10V_002dSubs.html#D10V_002dSubs" title="D10V-Subs">
<link rel="next" href="D10V_002dRegs.html#D10V_002dRegs" title="D10V-Regs">
<link href="http://www.gnu.org/software/texinfo/" rel="generator-home" title="Texinfo Homepage">
<!--
This file documents the GNU Assembler "as".
Copyright (C) 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
2000, 2001, 2002, 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
Permission is granted to copy, distribute and/or modify this document
under the terms of the GNU Free Documentation License, Version 1.3
or any later version published by the Free Software Foundation;
with no Invariant Sections, with no Front-Cover Texts, and with no
Back-Cover Texts. A copy of the license is included in the
section entitled ``GNU Free Documentation License''.
-->
<meta http-equiv="Content-Style-Type" content="text/css">
<style type="text/css"><!--
pre.display { font-family:inherit }
pre.format { font-family:inherit }
pre.smalldisplay { font-family:inherit; font-size:smaller }
pre.smallformat { font-family:inherit; font-size:smaller }
pre.smallexample { font-size:smaller }
pre.smalllisp { font-size:smaller }
span.sc { font-variant:small-caps }
span.roman { font-family:serif; font-weight:normal; }
span.sansserif { font-family:sans-serif; font-weight:normal; }
--></style>
<link rel="stylesheet" type="text/css" href="../cs.css">
</head>
<body>
<div class="node">
<a name="D10V-Chars"></a>
<a name="D10V_002dChars"></a>
<p>
Next:&nbsp;<a rel="next" accesskey="n" href="D10V_002dRegs.html#D10V_002dRegs">D10V-Regs</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="D10V_002dSubs.html#D10V_002dSubs">D10V-Subs</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="D10V_002dSyntax.html#D10V_002dSyntax">D10V-Syntax</a>
<hr>
</div>
<h5 class="subsubsection">9.8.2.3 Special Characters</h5>
<p><a name="index-line-comment-character_002c-D10V-758"></a><a name="index-D10V-line-comment-character-759"></a>&lsquo;<samp><span class="samp">;</span></samp>&rsquo; and &lsquo;<samp><span class="samp">#</span></samp>&rsquo; are the line comment characters.
<a name="index-sub_002dinstruction-ordering_002c-D10V-760"></a><a name="index-D10V-sub_002dinstruction-ordering-761"></a>Sub-instructions may be executed in order, in reverse-order, or in parallel.
Instructions listed in the standard one-per-line format will be executed sequentially.
To specify the executing order, use the following symbols:
<dl>
<dt>&lsquo;<samp><span class="samp">-&gt;</span></samp>&rsquo;<dd>Sequential with instruction on the left first.
<br><dt>&lsquo;<samp><span class="samp">&lt;-</span></samp>&rsquo;<dd>Sequential with instruction on the right first.
<br><dt>&lsquo;<samp><span class="samp">||</span></samp>&rsquo;<dd>Parallel
</dl>
The D10V syntax allows either one instruction per line, one instruction per line with
the execution symbol, or two instructions per line. For example
<dl>
<dt><code>abs a1 -&gt; abs r0</code><dd>Execute these sequentially. The instruction on the right is in the right
container and is executed second.
<br><dt><code>abs r0 &lt;- abs a1</code><dd>Execute these reverse-sequentially. The instruction on the right is in the right
container, and is executed first.
<br><dt><code>ld2w r2,@r8+ || mac a0,r0,r7</code><dd>Execute these in parallel.
<br><dt><code>ld2w r2,@r8+ ||</code><dt><code>mac a0,r0,r7</code><dd>Two-line format. Execute these in parallel.
<br><dt><code>ld2w r2,@r8+</code><dt><code>mac a0,r0,r7</code><dd>Two-line format. Execute these sequentially. Assembler will
put them in the proper containers.
<br><dt><code>ld2w r2,@r8+ -&gt;</code><dt><code>mac a0,r0,r7</code><dd>Two-line format. Execute these sequentially. Same as above but
second instruction will always go into right container.
</dl>
<a name="index-symbol-names_002c-_0040samp_007b_0024_007d-in-762"></a><a name="index-g_t_0040code_007b_0024_007d-in-symbol-names-763"></a>Since &lsquo;<samp><span class="samp">$</span></samp>&rsquo; has no special meaning, you may use it in symbol names.
</body></html>