NAR 2 - Instruction Structure

Instruction Structure

NAR 2 processor Machine instructions was made of a single 32-bit machine word and contained:

  • opcode in 8 most significant bits (bits 24 to 31)
  • 4 bits (20 to 23) specifying the Index register to use with indexed addressing modes
  • 4 bits (16 to 19) containing address mode flags:
    • bit 19: P (sr. Posredno, en. mediated) - indexed
    • bit 18: R (sr. Relativno) - relative to program counter
    • bit 17: I (sr. Indirektno) - multi-level memory indirect (note: the address is loaded from specified location and, should it also specify "I" flag the indirect address calculation continues)
    • bit 16: N (sr. Neposredno) - immediate
  • 16 bit signed parameter value

Read more about this topic:  NAR 2

Famous quotes containing the words instruction and/or structure:

    Much of the pressure contemporary parents feel with respect to dressing children in designer clothes, teaching young children academics, and giving them instruction in sports derives directly from our need to use our children to impress others with our economic surplus. We find “good” rather than real reasons for letting our children go along with the crowd.
    David Elkind (20th century)

    Just as a new scientific discovery manifests something that was already latent in the order of nature, and at the same time is logically related to the total structure of the existing science, so the new poem manifests something that was already latent in the order of words.
    Northrop Frye (b. 1912)