Intel 8XC196MC Microscope & Magnifier User Manual


 
8XC196MC, MD, MH USER’S MANUAL
4-14
4.2.2 Addressing a Location Through a Window
After you have selected the desired window, you need to know the windowed direct address of
the memory location (the address in the lower register file). Calculate the windowed direct ad-
dress as follows:
1. Subtract the base address of the area to be remapped (from Table 4-11 on page 4-15) from
the address of the desired location. This gives you the offset of that particular location.
2. Add the offset to the base address of the window (from Table 4-12 on page 4-15). The
result is the windowed direct address.
Appendix C includes a table of the windowable SFRs with the WSR values and windowed direct
addresses for each window size. Examples beginning on page 4-16 explain how to determine the
WSR value and windowed direct address for any windowable location. An additional example
shows how to set up a window by using the linker locator.
Table 4-10. Selecting a Window of the Upper Register File
Register RAM
Locations
WSR Value
for 32-byte Window
(00E0–00FFH)
WSR Value
for 64-byte Window
(00C0–00FFH)
WSR Value
for 128-byte Window
(0080–00FFH)
8XC196MH Only
02E0–02FFH 57H
2BH
15H
02C0–02DFH 56H
02A0–02BFH 55H
2AH0280–029FH 54H
0260–027FH 53H
29H
14H
0240–025FH 52H
0220–023FH 51H
28H0200–021FH 50H
8XC196MC, 8XC196MD, and 8XC196MH
01E0–01FFH 4FH
27H
13H
01C0–01DFH 4EH
01A0–01BFH 4DH
26H0180–019FH 4CH
0160–017FH 4BH
25H
12H
0140–015FH 4AH
0120–013FH 49H
24H0100–011FH 48H