<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<html>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=us-ascii">

  <title>MAST7 - 15</title>
  <link rel="stylesheet" type="text/css" href="errors.css">
</head>

<body>
  <h1><a name="MAST7-15" id="MAST7-15"></a>MAST7 Error 15</h1>
  <!-- Note that the header should be non scrollable, so that it always
     remains on top even if the user scrolls down a loooong text. -->
  <!-- This is the Error title -->

  <H2>Bad Relocatable Expression</H2>

  <p>This error is generated, for example, when operands of an instruction
  are not of one of the following types:</p>

  <ul>
    <li>constant_numeric_value</li>

    <li>relocatable_symbolic_value</li>

    <li>relocatable_ symbolic_value + constant_numeric_value</li>

    <li>relocatable_symbolic_value - relocatable_symbolic_value</li>
  </ul>

  <p><b>Notes:</b></p>

  <p>1. In case 4, both symbols must be defined in the file and in the same
  segment. In that case, the difference is equivalent to a constant numeric
  value (i.e. "gap" between these two symbols in the segment).</p>

  <p>2. The symbolic operators (HIGH-LOW) are allowed on the symbolic
  values.</p>

  <p>3. A constant numeric value can be made of every expression established
  by combination of the operators described in the manual. Thus, 2*3+4 is
  also a constant_numeric_value because the expression will be evaluated
  during assembling.</p>

  <p>However, replacement of "2" and "3" by relocatable symbols will produce
  an error:</p>
  <pre>
extrn code (lab1,lab2)
toto set lab1 + Lab2 ; &lt;&lt; error
</pre><!--Footer Start-->

  <div class="footer">
    <hr>
    <!--Copyright-->

    <p>&copy; Raisonance S.A.S. 1987-2007. All rights reserved.</p>
  </div><!--Closes the footer div-->
  <!--FOOTER_END-->
</body>
</html>
