[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference star::wizards

Title: "ASK THE WIZARDS"
Moderator:QUARK::LIONEL
Created:Mon Oct 30 1995
Last Modified:Mon May 12 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:1857
Total number of notes:3728

1641.0. "Open: why do I get this error?" by STAR::JKEENAN () Tue Mar 04 1997 15:17

Return-Path: "VMS001::WWW"@vms001.das-x.dec.com
Received: by vmsmkt.zko.dec.com (UCX V4.1-12, OpenVMS V6.2 VAX);
	Thu, 27 Feb 1997 15:31:35 -0500
Received: from vms001 by mail12.digital.com (8.7.5/UNX 1.5/1.0/WV)
	id PAA05542; Thu, 27 Feb 1997 15:24:01 -0500 (EST)
Date: Thu, 27 Feb 1997 15:25:26 -0500
Message-Id: <[email protected]>
From: "VMS001::WWW"@vms001.das-x.dec.com (27-Feb-1997 1525)
To: [email protected], [email protected], [email protected]
Subject: Ask the Wizard: '[email protected]'
X-VMS-To: [email protected]

Remote Host: (null)
Browser Type: Mozilla/3.0 (WinNT; I)
Remote Info: <null>
Name: ANH MINH TRINH
Email Address: [email protected]
CPU Architecture: VAX and Alpha
Version: v 6.2
Questions: 


 I'm trying to do a conversion of macro-32 code from
 VAX (Open VMS 6.2 - Vax MACRO V5.4-3) to ALPHA
 (Open VMS 6.2-1H3 - AMAC V2.1-17-267).

 The source code is compiled (or assembled) on the
 VAX successfully.

 On the Alpha I have the following error :
%AMAC-E-ILLRELADR, (1) illegal relative addressing mode
-MACR
 O-I-ATEXPLINE, at macro expansion line 89

 The following is a portion of the listing which 
 contains the macro expansion :

         X06/088 ?05F 0000004E          .IIF IDN NEQ,EQL,   BNEQ    .+5
         X06/089 ?05T 0000004E          .IIF IDN NEQ,NEQ,   BEQL    .+5
         X06/090 ?05F 00000050          .IIF IDN NEQ,GTR,   BLEQ    .+5
         X06/091 ?05F 00000050          .IIF IDN NEQ,GEQ,   BLSS    .+5
         X06/092 ?05F 00000050          .IIF IDN NEQ,LEQ,   BGTR    .+5
         X06/093 ?05F 00000050          .IIF IDN NEQ,LSS,   BGEQ    .+5
         X06/094 ?05F 00000050          .IIF IDN NEQ,GTRU,  BLEQU   .+5
         X06/095 ?05F 00000050          .IIF IDN NEQ,GEQU,  BLSSU   .+5
         X06/096 ?05F 00000050          .IIF IDN NEQ,LSSU,  BGEQU   .+5

 If you look at this portion, I have more than one
 relative addressing mode.  Why the error occurs only
 at line 089 ?  Is it possible that the error message
 is not correct ?  
 What should I do ?

 Thank You

 Minh Trinh

 


 
T.RTitleUserPersonal
Name
DateLines
1641.1Forwarded over to the Macro folks...XDELTA::HOFFMANSteve, OpenVMS EngineeringFri Mar 07 1997 14:580
1641.2Two questions, two answers.CPEEDY::FLEURYMon Mar 10 1997 08:3623
        re: .0
    
        There are actually two issues here.
    
        1) Why is the message only reported at line 89?
    
    	Close examination of the listing will show that line 89 is the only
    	line where the expansion is true.  Only when the line is to be 
        processed will the compiler scan the line for syntax etc.
    
        2) Why is the error reported at all?
    
            From HELP/MESSAGE we find:
    
            ILLRELADR,  illegal relative addressing mode
                                                                         
            Facility:     AMAC, MACRO-32 Compiler for OpenVMS AXP
    
            Explanation:  A branch to a destination that is the offset from a
                          label (for example, BLSS FOO+2) is not allowed.
    
            User Action:  Place a label at the destination, and branch to that
                          label.