Intel 121748-001 manual

Models: 121748-001

1 122
Download 122 pages 57.59 Kb
Page 103
Image 103

8086 Object Module Formats

Version 4.8

3 Self-Relative Reference To An EXTERNAL Symbol

A LLLLLLLLLLLLLL (- PP

? ••••••••••••••

L

+--------

L

L

+ L

•••••••••••• <- PT

L

I LOC

1--------------------

>. SYM

••

L

+--------

+ L

• ••••••••••

L

,

L

 

LLLI.LLLLLLLLLL

• • • • • • • •

FIXUP"REPRESENTATI IN:

LOCATION: OFFSET or LOBYTE

PSEG: SI(A) (this is the most common choice)

TARGeT: EI(SY~),0

or EI(SYM) if the offset is to be maintained in LOCATION

Or if the reference is to the i'th element of an external array:

LOCATION: OFFSET or LOBYTE

PSEG: SICA) this is the most common choice

TARGET: EI(SYM) ,i-1

LINK OPERATION:

There are three ways in which an external self-relative reference ,ay be resol ved •

CASE 1: The EX'fERNAL symbol (SYM) is found (by LINK) to be in the same LSEG as the LOCATION.

CASE 2: The EXTERNAL symbol (SYM) is found (by LINK) to be in a different LSEG, B.

CASE 3: The EXTERNAL symbol (SYM) is found (by LINK) to !)e absolute.

103

Page 103
Image 103
Intel 121748-001 manual