Keil Logo

A166: Error 71 (Expression with Forward Reference)


Information in this article applies to:

  • C166 Version 3.x
  • C166 Version 4.x

SYMPTOMS

I receive the following errors when I assemble my 166 assembler source file.

*** ERROR #42, LINE #4, UNDEFINED IDENTIFIER
*** ERROR #71, LINE #4, EXPRESSION WITH FORWARD REFERENCE NOT PERMITTED

What causes this problem?

CAUSE

This problem is typically caused by a SET, EQU, or ORG statement used with a label that is defined later in your program. For example, the following example code generates this error message.

junk    section code
tmp     proc    near

jjj     equ     bob+1

start:  nop
        nop
        nop
        nop
bob:    nop
        nop
        nop

tmp     endp
junk    ends

end

RESOLUTION

The A166 assembler must resolve SET, EQU, and ORG statements when they are declared. References to objects that are not already defined are not allowed. To resolve this problem, move the statement below the forward reference, or remove the forward reference from the SET, EQU, or ORG statement.

MORE INFORMATION

Refer to the following for more information.

  • A166 Assembler User's Guide 07.96 page 138, error message 71,

Last Reviewed: Wednesday, September 21, 2016


Did this article provide the answer you needed?
 
Yes
No
Not Sure
 
  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.