Intel 80C196NU User Manual

Page of 471
8XC196NP, 80C196NU USER’S MANUAL
5-16
5.3.2
Addressing a Location Through a Window
After you have selected the desired window, you need to know the direct address of the memory
location (the address in the lower register file). For SFRs, refer to the WSR tables in Appendix
C. For register file locations, calculate the direct address as follows:
1.
Subtract the base address of the area to be remapped (from Table 5-10 on page 5-17) 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 5-11). The result is the direct
address.
0360–037F
5BH
2DH
16H
0340–035F
5AH
0320–033F
59H
2CH
0300–031F
58H
02E0–02FF
57H
2BH
15H
02C0–02DF
56H
02A0–02BF
55H
2AH
0280–029F
54H
0260–027F
53H
29H
14H
0240–025F
52H
0220–023F
51H
28H
0200–021F
50H
01E0–01FF
4FH
27H
13H
01C0–01DF
4EH
01A0–01BF
4DH
26H
0180–019F
4CH
0160–017F
4BH
25H
12H
0140–015F
4AH
0120–013F
49H
24H
0100–011F
48H
Table 5-9.  Selecting a Window of the Upper Register File (Continued)
Register RAM
Locations 
(Hex)
WSR or WSR1 Value 
for 32-byte Window
(00E0–00FFH or 0060–007FH)
WSR or WSR1 Value
for 64-byte Window
(00C0–00FFH or 0040–007FH)
WSR Value 
for 128-byte Window
(0080–00FFH)