You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
76 lines
4.1 KiB
HTML
76 lines
4.1 KiB
HTML
15 years ago
|
<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.7">
|
||
|
<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, 92, 93, 94, 95, 96, 97, 98, 99, 2000, 2001, 2002,
|
||
|
2006, 2007 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.1
|
||
|
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''.
|
||
|
|
||
|
man end-->
|
||
|
<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; }
|
||
|
--></style>
|
||
|
</head>
|
||
|
<body>
|
||
|
<div class="node">
|
||
|
<p>
|
||
|
<a name="D10V_002dChars"></a>Next: <a rel="next" accesskey="n" href="D10V_002dRegs.html#D10V_002dRegs">D10V-Regs</a>,
|
||
|
Previous: <a rel="previous" accesskey="p" href="D10V_002dSubs.html#D10V_002dSubs">D10V-Subs</a>,
|
||
|
Up: <a rel="up" accesskey="u" href="D10V_002dSyntax.html#D10V_002dSyntax">D10V-Syntax</a>
|
||
|
<hr><br>
|
||
|
</div>
|
||
|
|
||
|
<h5 class="subsubsection">9.8.2.3 Special Characters</h5>
|
||
|
|
||
|
<p><a name="index-line-comment-character_002c-D10V-731"></a><a name="index-D10V-line-comment-character-732"></a><span class="samp">;</span> and <span class="samp">#</span> are the line comment characters.
|
||
|
<a name="index-sub_002dinstruction-ordering_002c-D10V-733"></a><a name="index-D10V-sub_002dinstruction-ordering-734"></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><span class="samp">-></span><dd>Sequential with instruction on the left first.
|
||
|
<br><dt><span class="samp"><-</span><dd>Sequential with instruction on the right first.
|
||
|
<br><dt><span class="samp">||</span><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 -> 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 <- 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+ -></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-735"></a><a name="index-_0040code_007b_0024_007d-in-symbol-names-736"></a>Since <span class="samp">$</span> has no special meaning, you may use it in symbol names.
|
||
|
|
||
|
</body></html>
|
||
|
|