Intel 121748-001 manual

Models: 121748-001

1 122
Download 122 pages 57.59 Kb
Page 109
Image 109

8086 Object Module Formats

Version 4.0

Diaqrams land 2 show two commom cases.

R&L attempts to inform the user of any erroneous self-relative references (TARGET not within 32K from LaC). The 'symbol beinq referenced must be within the defined LSEG independent of the value at LOCATION to be applied:

EXAMPLES:

J~P SYM

+ 10

or

JMP

SYM - 2

 

The symbol SYM will have an offset within its containinq LSEG.

The

values 10 and -2are siqned numbers.

The fixup output by an

8989

translator

may be

 

 

 

 

 

 

LOCATION: OFFSET

 

 

 

 

 

FRAME:

F~

 

DISPLACE~ENT = number

 

 

TARGET:

EXTERNAL (SYM) ,

 

The output of LINK will be:

LOCATION: OFFSET

FRAME: F~

TARGET: SEGMENT(B), DISPLACEMENT = number + offset

Where 'number + offset' is the sum of the siqned 'number' and the non- neoative 'offset' of the symbol from the base of the segment B. Warninq will be issued if overflow or underflow occurs durinq the co~putation of this displacement.

LOCATE will compute the 20-bit address of TARGET and the 20-hit address of LOCATION, then the siqned displacement from the LOCATIO~ to TARGET. A warning will be issued if the displacement is not within 32K. Otherwise, the signed displacement is added to the value in LOCATION and no checkinq will be performed for this last addition.

1(19

Page 109
Image 109
Intel 121748-001 manual