Prerequisite – Addressing Modes
1. Indirect Addressing Mode :
This is the mode of addressing where the instruction contains the address of the location where the target address is stored. So in this way it is Indirectly storing the address of the target location in another memory location. So it is called Indirect Addressing mode.
There are 2 types(or versions) of Indirect Addressing Mode: Memory Indirect, and Register Indirect.
- Memory Indirect –
In this type we directly mention the address of the memory location in the instruction either enclosed by parenthesis or preceded by ‘@’ character.
LOAD R1, (1005) or LOAD R1, @1005
- Register Indirect –
In this type the address of the target memory location will be stored in the register and the register will be mentioned in the instruction.
MOV R@, 1005 LOAD R1, (R2)
2. Implied Addressing Mode :
This is the mode of addressing where the operand is specified implicitly in the definition of the instruction. This mode of addressing is normally used in zero address (e.g., Stack operations) and one address (e.g., MUL AL) instructions. Hence the operand is implied inside the instruction, it is called as Implied Addressing Mode.
MOV CL, 05 L1: INC AL LOOP L1
Here AL will be incremented by 1 every time the loop executes. Hence 1 is implied inside the instruction INC AL.
Difference between Indirect and Implied Addressing Modes :
|Sl. No||Indirect Addressing Mode||Implied Addressing Mode|
|1.||Multiple memory spaces are used.||No memory Intervension|
|2.||Operands are explicit||Operands are implicit|
|3.||Mostly used in 2 address instructions and more||Mostly used in zero address and single address instructions|
|4.||3 memory references are required||No memory references are required|
|5.||Address space is large||Address space is small|
|6.||Additional calculations are the only way to perform operation||No additional calculations are required|
|7.||Execution speed is less||Execution speed is more|
Attention reader! Don’t stop learning now. Get hold of all the important DSA concepts with the DSA Self Paced Course at a student-friendly price and become industry ready.
- Difference between Direct and Implied Addressing Modes
- Difference between Indirect and Immediate Addressing Modes
- Difference between Direct and Indirect Addressing Modes
- Difference between Implied addressing mode and Immediate addressing mode
- Difference between Direct and Immediate Addressing Modes
- Difference between PC relative and Base register Addressing Modes
- Difference between Memory based and Register based Addressing Modes
- Addressing Modes
- Addressing modes in 8085 microprocessor
- Addressing modes in 8086 microprocessor
- What is the difference between fopen modes “r+”, "rw+" and “w+” in PHP?
- Difference between Simplex, Half duplex and Full Duplex Transmission Modes
- Difference between Register Mode and Register Indirect Mode
- Removing Direct and Indirect Left Recursion in a Grammar
- 8255 microprocessor operating modes
- Classful Vs Classless Addressing
- What is APIPA (Automatic Private IP Addressing)?
- IPv6 Addressing Format and Conventions
- 8085 program to swap two 8 bit numbers using Direct addressing mode
- 8085 program to swap two 16 bit numbers using Direct addressing mode
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to email@example.com. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.