17.05.2015 Views

80C186EB 80C188EB Users Manual 1990 - Al Kossow's Bitsavers

80C186EB 80C188EB Users Manual 1990 - Al Kossow's Bitsavers

80C186EB 80C188EB Users Manual 1990 - Al Kossow's Bitsavers

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

inter<br />

OVERVIEW OF THE 80C186 FAMILY MODULAR<br />

MICROPROCESSOR CORE ARCHITECTURE<br />

FFFFFH<br />

DATA: DS: B ~--<br />

j<br />

CODE: CS: E 1---,<br />

D<br />

STACK: SS: H \--, I<br />

EXTRA: ES:<br />

h II<br />

I I<br />

I I<br />

IL<br />

I L_<br />

G<br />

: [j<br />

OH<br />

270288-001-09<br />

Figure 2.7. Currently Addressable Segments<br />

The segmented memory structure of the 80Cl86 Modular Core family is a hardware provision to<br />

encourage modular programming. Every program will use segmentation differently. Smaller applications<br />

tend to initialize the segment registers and then simply forget them. Larger applications give<br />

careful consideration to segment definition and use.<br />

2.1.8 LOGICAL ADDRESSES<br />

It is useful to think of every memory location as having two kinds of addresses, physical and logical.<br />

A physical address is a 20-bit value that identifies each unique byte location in the memory space.<br />

Physical addresses range from OH to FFFFFH. <strong>Al</strong>l exchanges between the CPU and memory components<br />

use a physical address.<br />

Programs deal with logical, rather than physical addresses. Program code can be developed without<br />

prior knowledge of where the code is to be located in memory; in larger applications, dynamic<br />

management of memory resources is a necessity. A logical address consists of a segment base value<br />

and an offset value. For any given memory location, the segment base value locates the first byte of<br />

the segment and the offset value is the distance, in bytes, of the target location from the beginning of<br />

the segment. Segment base and offset values are unsigned 16-bit quantities. Many different logical<br />

addresses can map to the same physical location. In the example (see Figure 2.8), physical memory<br />

location 2C3H is contained in two different overlapping segments, one beginning at 2BOH and the<br />

other at 2COH.<br />

2-9

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!