<!-- Converted to DocBook/SGML by Kevin Conder -->
<refentry id="assign">
  <refmeta>
    <refentrytitle>=</refentrytitle>
  </refmeta>

  <refnamediv>
    <refname>=</refname>

    <refpurpose>
       Performs a simple assignment.
       <indexterm id="IndexAssign"><primary>=</primary></indexterm>
    </refpurpose>
  </refnamediv>

  <refsect1>
    <title>Syntax</title>
    <synopsis>ar <command>=</command> xarg</synopsis>
    <synopsis>ir <command>=</command> iarg</synopsis>
    <synopsis>kr <command>=</command> karg</synopsis>
  </refsect1>

  <refsect1>
    <title>Description</title>
    <para> 
      Performs a simple assignment.
    </para> 
  </refsect1>

  <refsect1>
    <title>Initialization</title>
    <para> 
      <emphasis>=</emphasis> (simple assignment) - Put the value of the expression <emphasis>iarg</emphasis> (<emphasis>karg, xarg</emphasis>) into the named result. This provides a means of saving an evaluated result for later use.
    </para> 
  </refsect1>

  <refsect1>
    <title>Examples</title>
    <para>
      Here is an example of the assign opcode. It uses the files <ulink url="examples/assign.orc"><citetitle>assign.orc</citetitle></ulink> and <ulink url="examples/assign.sco"><citetitle>assign.sco</citetitle></ulink>.

      <example>
        <title>Example of the assign opcode.</title>

        <programlisting>
<inlinemediaobject>
            <imageobject>
              <imagedata fileref="examples/assign.orc" format="linespecific">
            </imageobject>
          </inlinemediaobject>
        </programlisting>

        <programlisting>
<inlinemediaobject>
            <imageobject>
              <imagedata fileref="examples/assign.sco" format="linespecific">
            </imageobject>
          </inlinemediaobject>
        </programlisting>
      </example>

      Its output should include a line like this:
      <screen>
instr 1:  i1 = 1234.000
      </screen>
    </para>
  </refsect1>

  <refsect1>
    <title>See Also</title>
    <para>
      <link linkend="divz"><citetitle>divz</citetitle></link>, 
      <link linkend="init"><citetitle>init</citetitle></link>, 
      <link linkend="tival"><citetitle>tival</citetitle></link>
    </para>
  </refsect1>

  <refsect1>
    <title>Credits</title>
    <para>Example written by &namekevin;.</para>
  </refsect1>
</refentry>
