NAR 2 - Addressing Modes

Addressing Modes

With four address mode selection bits (P, R, I and N - indexed, relative, indirect and immediate), NAR 2 instructions can specify 16 different addressing modes but not all make sense in all instructions. In the following table:

  • M specifies the 32-bit value (content) of memory location x
  • BN specifies the program counter
  • p specifies the 16-bit signed parameter at location
  • Xi specifies the index register selected by data at location
  • f is the "effective value" function used for indirect addressing (see details below):
Addr. flags Instruction type
P R I N Data Jump
- - - - M p
- - - N p p
- - I - M)] f(M)
- - I N f(M) f(M)
- R - - M BN+p
- R - N BN+p BN+p
- R I - M)] f(M)
- R I N f(M) f(M)
P - - - M Xi+p
P - - N Xi+p Xi+p
P - I - M)] f(M)
P - I N f(M) f(M)
P R - - M BN+Xi+p
P R - N BN+Xi+p BN+Xi+p
P R I - M)] f(M)
P R I N f(M) f(M)

Note 1: "N" (immediate) flag has no effect on jump (flow control) instructions, as the processor can not jump into a specified value, but only to a memory address.

Read more about this topic:  NAR 2

Famous quotes containing the words addressing and/or modes:

    But what is quackery? It is commonly an attempt to cure the diseases of a man by addressing his body alone. There is need of a physician who shall minister to both soul and body at once, that is, to man. Now he falls between two stools.
    Henry David Thoreau (1817–1862)

    Of the modes of persuasion furnished by the spoken word there are three kinds. The first kind depends on the personal character of the speaker; the second on putting the audience into a certain frame of mind; the third on the proof, provided by the words of the speech itself.
    Aristotle (384–323 B.C.)