Addressing Mode
Effective address (EA):
The most well known addressing mode are:
Implied Addressing Mode·
For example:- CMA - “complement accumulator” is an implied-mode instruction because the operand in the accumulator register is implied in the definition of the instruction. In fact, all register reference instructions that use an accumulator are implied-mode instructions.
Immediate Addressing mode:
It was mentioned previously that the address field of an instruction may specify either a memory word or a processor register. When the address field specifies a processor register, the instruction is said to be in register-mode.
Advantage: no memory reference. Disadvantage: limited operand
Register direct addressing mode:
For example MOV A, B
Effective Address (EA) = R
Advantage: no memory reference. Disadvantage: limited address space
Register indirect addressing mode:
For example LDAX B
Effective Address (EA) = (R)
Advantage: Large address space.
The address field of the instruction uses fewer bits to select a register than would have been required to specify a memory address directly.
Disadvantage: Extra memory reference
Auto increment or Auto decrement Addressing Mode:
Direct Addressing Mode
Indirect Addressing Mode
Displacement Addressing Mode
Relative Addressing Mode
Effective Address (EA) = PC + A
Indexed Addressing Mode
Effective Address (EA) = XR + A
Base Register Addressing Mode
Effective Address (EA) = BR + A
Stack Addressing Mode
The stack is the linear array of locations. It is some times referred to as push down list or last in First out (LIFO) queue. The stack pointer is maintained in register.
Let us try to evaluate the addressing modes with as example.
20 videos|86 docs|48 tests
|
1. What are addressing modes in IT and software? |
2. How many types of addressing modes are there in IT and software? |
3. What is immediate addressing mode in IT and software? |
4. Can you explain indirect addressing mode in IT and software? |
5. How does indexed addressing mode work in IT and software? |
20 videos|86 docs|48 tests
|
|
Explore Courses for Computer Science Engineering (CSE) exam
|