From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII X-Google-Thread: 1164f8,6df90b719d2f2825,start X-Google-Attributes: gid1164f8,public From: elgaard@diku.dk (Niels Elgaard Larsen) Subject: Alpha Assembler, label minus label Date: 1995/09/04 Message-ID: #1/1 X-Deja-AN: 109471691 distribution: world sender: elgaard@alrun.diku.dk address: Universitetsparken 1, DK-2100 Copenhagen, Denmark content-type: text/plain; charset=ISO-8859-1 organization: DIKU, Dept. of Computer Science, University of Copenhagen phone: +45 35 32 13 81, fax: +45 35 32 14 01, University: +45 35 32 18 18 mime-version: 1.0 reply-to: elgaard@diku.dk (Niels Elgaard Larsen) newsgroups: comp.sys.dec x-mailer: GNU emacs When I try to assemble the following: .data .word 0x42 l1: .word 0x42 l2: .word 0x43 .word l2-l1 I get: as0: Error: A1.s, line 7: Symbol must have absolute value: l1 .word l2-l1 Why? The Programmer guide says: � If the operator is a minus sign (-) and the first operand refers to a relocatable text-section, data- section, or bss-section symbol, type propagation rules can vary: - The second operand can be absolute (if it was previously defined) and the result has the first operand's type. - The second operand can have the same type as the first operand and the result is absolute. - If the first operand is external undefined, the second operand must be absolute. -- Niels Elgaard Larsen Department of Computer Science, University of Copenhagen, Denmark E-mail: elgaard@diku.dk