Addressing modes

Advertisements
Advertisements
Advertisements3
Advertisements4
Advertisements6
Advertisements66

 Addressing modes

  • In immediate addressing, the operand field contains the data itself.
  • In register direct addressing, the operand field contains the address of a datapath register in which the data resides.
  • In register-indirect addressing, the operand field contains the address of a register, which in turn contains the address of a memory location in which the data resides.
  • In direct addressing, the operand field contains the address of a memory location in which the data resides.
  • In indirect addressing, the operand field contains the address of a memory location, which in turn contains the address of a memory location in which the data resides.

  • Figure 2.6 shows a (trivial) instruction set with 4 data transfer instructions, 2 arithmetic instructions, and 1 branch instruction, for a hypothetical processor.

  • Figure 2.7(a) shows a program, written in C, that adds the numbers 1 through 10. Figure 2.7(b) shows that same program written in assembly language using the given instruction set.

Author: Lakshmi Prasanna Ponnala

Completed M.Tech in Digital Electronics and Communication Systems.

Leave a Reply

error: Content is protected !!

Discover more from ece4uplp

Subscribe now to keep reading and get access to the full archive.

Continue reading