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

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

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

<body>
  <h1><a name="RLST7-121" id="RLST7-121"></a>RLST7 ERROR 121</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>IMPROPER FIXUP</h2>

  <p>The Linker attempted to resolve a relative address used in a CALL, JP or
  JRxxx instruction and the address was found to be out of the address range
  allowed by the instruction. For example JREQ instructions can only jump to
  a location within the [-128/+127] address range.</p>

  <h2>Resolution</h2>

  <p>The error gives the absolute address of the instruction whose fixup
  failed. The following steps determine the exact location in your code that
  the problem occurs:</p>

  <p>Look at the Link Map in the Map File to determine in which segment the
  absolute address resides. Referring to the segment naming conventions in
  Chapter 3 you can determine which function generates the problem.</p>

  <p>Take away the absolute address from the starting address of the segment
  to obtain an offset into the segment of the problem. For example if the
  absolute address given by the error was 0015H and the segment starts at
  0013H, the offset is 0015H-0013H = 0002H.</p>

  <p>Open the Assembler or Compiler Listing file for the Source File that
  contains the function and locate the assembly listing for that
  function.</p>

  <p>The first number on each assembler line is the memory offset of the
  current instruction within the function.</p>

  <p>For example, the following shows a JRNE instruction at offset 0004H:</p>
  <pre>
              ; SOURCE LINE # 31 
0004 2605                              JRNE   ?LAB_0003
</pre>You can now resolve the problem by selecting appropriate instructions
or offset range. <!--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>
