Feleke - Addressing Mode - 2023
Feleke - Addressing Mode - 2023
The 8086 microprocessor let us access memory in many different ways. The memory
addressing modes provides flexible access to memory, allowing us to easily access Variable, Arrays,
Recorders and other complex datatype.
The addressing modes in computer architecture actually define how an operand is chosen
to execute an instruction. It is the way that is used to identify the location of an operand which is
specified in an instruction.
Whenever an instruction executes, it requires operands to be operated on. An instruction field
consisting of opcode and operand. Where operand means the data and opcode means the instruction
itself. In case of operations like addition or subtraction, they require two data. So, they are called binary
instruction. On the other hand, the increment or decrement operations need only one data and are so
called unary instruction. Now the question is how these data can be obtained.
Consider an example that you want to buy a product from an online shopping site say Amazon.
Now you can pay it either by using cash on delivery, by net banking, by debit/credit card, by UPI etc.
So, in different ways, you can make payment to Amazon. This is the various payment modes available.
But here we are discussing the addressing modes in computer architecture, that means how an
instruction can access operands to be operated on using various modes.
The various addressing modes in computer architecture can be classified as below. We have
some other addressing modes too, but these are the prime addressing modes in computer architecture.
In this instruction CMA or along with this instruction, we are not mentioning any operand. So
here it knows that the operand has to be accessed from the accumulator implicitly. This is known as
implicit addressing modes.
Characteristics
o No memory reference to fetch data.
o It is fast
o Limited range
Characteristics
Here A contains the address of the location B in memory and B contains the actual address of the
operand in memory. That operand will be moved in to AX register.
Characteristics
The unique identification of the register can be done by the register number which is mentioned in
the instruction. In that register, the operand can be found.
Characteristics
Suppose in memory, the operand is in the Ath location. Now, this address A will be stored in the
register and the register number say R will be mentioned in the instruction. This is called register
addressing mode.
Example:
MOV AX, [BX] ; moves into AX the contents of the memory location pointed to by
DS:BX, 1000:1234
Example:
Characteristics
Displacement addressing mode in computer architecture can be categorized into 3 different modes.
Characteristics
EA = X + [R]
Address field hold two values
–X = constant value (offset)
–R = register that holds address of memory locations or vice versa
Offset given as constant or in the index register
Example : Add 20(R1),R2 or
Add 1000(R1),R2
‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐The End! ‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐