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.

OVERVIEW OF THE 80C186 FAMILY MODULAR<br />

MICROPROCESSOR CORE ARCHITECTURE<br />

With indexed addressing, the effective address is calculated from the sum of a displacement plus the<br />

content of an index register (SI or 01). See Figure 2.17. Indexed addressing is often used to access<br />

elements in an array (see Figure 2.18). The displacement locates the beginning of the array, and the<br />

value of the index register selects one element. If the index register contains OOOOH, the processor<br />

selects the first element. Since all array elements are the same length, simple arithmetic on the register<br />

may select any element.<br />

270288-001-19<br />

Figure 2.17. Indexed Addressing<br />

HIGH ADDRESS<br />

r<br />

I<br />

I<br />

I<br />

I<br />

I<br />

I<br />

I<br />

I<br />

I<br />

INDEX REGISTER<br />

EA<br />

L __________ _<br />

ARRAY (8)<br />

ARRAY (7)<br />

ARRAY (6)<br />

ARRAY (5)<br />

ARRAY (4)<br />

INDEX REGISTER<br />

ARRAY (3) 2<br />

ARRAY (2) ,<br />

I-_A_R_RA_Y_(1_) --I ---1<br />

ARRAY (0)<br />

EA<br />

..,<br />

1 WORD<br />

LOW ADDRESS<br />

270288-001-20<br />

Figure 2.18. Accessing an Array with Indexed Addressing<br />

2-27

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

Saved successfully!

Ooh no, something went wrong!