1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2<html xml:lang="en-US" lang="en-US" xmlns="http://www.w3.org/1999/xhtml">
3  <head>
4    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
5    <meta http-equiv="Content-Style-Type" content="text/css" />
6    <link rel="stylesheet" href="../css/manpage.css" type="text/css" />
7    <link rel="stylesheet" href="../css/timetable.css" type="text/css" />
8    <title>endloop - End loop statement</title>
9  </head>
10  <body>
11    <h1>endloop - End loop statement</h1>
12
13    <h2>Calling Format</h2>
14    <div class="section">
15      <pre class="definition">
16endloop
17</pre>
18    </div>
19
20    <h2>Operands</h2>
21    <div class="section">
22      <p>
23        None.<br>
24      </p>
25    </div>
26
27    <h2>Overview</h2>
28    <div class="section">
29      <p>
30        Specifies the end of a loop control block that was started by the <CODE>loop</CODE> instruction.<br>
31      </p>
32      <p class="warning">
33        There must be at least one instruction between <CODE>loop</CODE> and <CODE>endloop</CODE>.<br>
34      </p>
35    </div>
36
37    <h2>Operation</h2>
38    <div class="section">
39<pre class="definition">
40for ( int i = 0, aL = src.init ; i &lt; src.count+1 ; i++, aL += src.step )
41{
42    ...
43}
44</pre>
45    </div>
46
47    <h2>Code Example</h2>
48    <div class="section">
49<pre class="definition">
50defi    i0, 10, 0, 1
51
52loop    i0
53    add     r0, r0, c0[ aL ]    // Add the total of c0, c1, ... , c9 to r0
54endloop
55</pre>
56    </div>
57
58
59  <h2>Revision History</h2>
60  <div class="section">
61    <dl class="history">
62      <dt>2011/12/20</dt>
63      <dd>Initial version.<br />
64      </dd>
65    </dl>
66  </div>
67
68  <hr><p>CONFIDENTIAL</p></body>
69</html>