|Subject||Computer Organizations and Architecture|
|NU Year||Set: 2.(a) Marks: 5 Year: 2010|
Relative address means an address specified by indicating its distance from another address, called the base address. For example, a relative address might be B+15, B being the base address and 15 the distance .
advantage of using
relative mode over direct mode is that relative addressing is a code which is position-independent, i.e. it can be loaded anywhere in memory without the need to adjust any addresses.
Also, relative addressing is
particularly useful in connection with jumps, because typical jumps are to nearby instructions.