Dynamic Code Relocation - Intel 80C186XL User Manual

Intel microprocessor user's manual
Table of Contents

Advertisement

OVERVIEW OF THE 80C186 FAMILY ARCHITECTURE
Before
Relocation
Code
Segment
Stack
Segment
Data
Segment
Extra
Segment
To be dynamically relocatable, a program must not load or alter its segment registers and must
not transfer directly to a location outside the current code segment. All program offsets must be
relative to the segment registers. This allows the program to be moved anywhere in memory, pro-
vided that the segment registers are updated to point to the new base addresses.
2-14
CS
SS
DS
ES
Free Space
Figure 2-9. Dynamic Code Relocation
Relocation
CS
SS
DS
ES
After
Code
Segment
Stack
Segment
Data
Segment
Extra
Segment
A1039-0A

Advertisement

Table of Contents
loading

This manual is also suitable for:

80c188xl

Table of Contents