From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18598 invoked by alias); 30 Sep 2002 14:22:05 -0000 Mailing-List: contact cgen-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cgen-owner@sources.redhat.com Received: (qmail 18591 invoked from network); 30 Sep 2002 14:22:04 -0000 Received: from unknown (HELO kiruna.synopsys.com) (204.176.20.18) by sources.redhat.com with SMTP; 30 Sep 2002 14:22:04 -0000 Received: from mother.synopsys.com (mother.synopsys.com [146.225.100.171]) by kiruna.synopsys.com (Postfix) with ESMTP id E5728FFEF for ; Mon, 30 Sep 2002 07:22:03 -0700 (PDT) Received: from fr02.synopsys.com (localhost [127.0.0.1]) by mother.synopsys.com (8.9.1/8.9.1) with ESMTP id HAA14584 for ; Mon, 30 Sep 2002 07:21:27 -0700 (PDT) Received: from michaelclap (localhost [127.0.0.1]) by fr02.synopsys.com (8.9.1/8.9.1) with SMTP id QAA08629 for ; Mon, 30 Sep 2002 16:21:59 +0200 (MET DST) From: "Michael Chapman" To: Subject: Help: 'unresolved expression that must be resolved' Date: Mon, 30 Sep 2002 07:22:00 -0000 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700 Importance: Normal X-SW-Source: 2002-q3/txt/msg00083.txt.bz2 I have trouble trying to refer to a label in the assembler anywhere. The one line test program subroutine: call subroutine gives me $ gas test1.asm test1.asm: Assembler messages: test1.asm:1: Error: unresolved expression that must be resolved $ What does it mean that an expression is unresolved? Here below is the relevant parts from my .cpu file. Any explanations as to how to make this simple example work would be most welcome. Thanks. Mike Chapman ; Opcode fields (dnf f-call-opcode "call opcode" () 7 6) ; Absolute address, 26-bit (shifted 1 bit to right) (df f-abs26 "abs26" (ABS-ADDR) 31 26 UINT ((value pc) (sra WI value (const 1))) ((value pc) (sll WI value (const 1)))) ; Instruction operands. (dnop abs26 "abs26" () h-iaddr f-abs26) ; Instructions (dni call-abs26 "call abs26" (UNCOND-CTI) "call $abs26" (+ (f-call-opcode #xf3) abs26) (set pc abs26) () )