1.

What Are Forward References?

Answer»

It is a reference to a label that is defined later in a program. 

Consider the statement 

10 1000 STL RETADR 
……
……
8o 1036 RETADR RESW 1 

The first instruction contains a FORWARD reference RETADR. If we ATTEMPT to TRANSLATE the program line by line, we will unable to process the statement in line10 because we do not know the address that will be assigned to RETADR .The address is assigned later(in line 80) in the program. 

It is a reference to a label that is defined later in a program. 

Consider the statement 

10 1000 STL RETADR 
……
……
8o 1036 RETADR RESW 1 

The first instruction contains a forward reference RETADR. If we attempt to translate the program line by line, we will unable to process the statement in line10 because we do not know the address that will be assigned to RETADR .The address is assigned later(in line 80) in the program. 



Discussion

No Comment Found