The instruction pointer (IP) and SP registers are essentially the program counter and stack pointer registers, but the complete instruction and stack addresses are formed by adding the contents of these registers to the contents of the code segment (CS) and stack segment (SS) registers discussed below.
an example, if (CS) = 123A and (IP) = 341B, then the next instruction will be fetched from
341B | Effective address | |
+ 123A0 | Beginning segment address | |
157BB | Physical address of instruction |
Figure 2-3 Formation of a physical address.
The advantages of using segment registers are that they:
Figure 2-4 Address computations and memory segmentation.
(a) Address within segment | (b) Overlapping segments |
This is page 11.