2. 1
Introduction to Addressing Modes
Addressing modes are a crucial aspect of
computer organization and architecture.
They determine how the CPU accesses
operands or data in memory.
Different addressing modes provide
flexibility and efficiency in executing
instructions.
3. 2
Immediate Addressing Mode
Immediate addressing mode uses a
constant value directly in the instruction.
The operand is not stored in memory but is
part of the instruction itself.
This mode is useful for arithmetic and
logical operations with constants.
4. 3
Direct Addressing Mode
Direct addressing mode accesses data
directly from a memory location specified
by an address.
The address is provided as an operand in
the instruction.
It is simple but can lead to slower execution
due to memory access time.
5. 4
Indirect Addressing Mode
Indirect addressing mode uses the value of
a register or memory location as the
address.
The instruction provides the address of the
register or memory location.
This mode is useful for accessing data
structures or implementing pointers.
6. 5
Register Addressing Mode
Register addressing mode uses one or
more registers to store operands.
The instruction specifies the registers used,
eliminating the need for memory access.
It is faster than memory-based addressing
modes but limited by the number of
available registers.
7. 6
Indexed Addressing Mode
Indexed addressing mode adds an offset or
index value to a base address.
The offset is provided as an operand in the
instruction.
This mode is useful for accessing elements
of arrays or data structures.
8. 7
Summary and Conclusion
Addressing modes play a crucial role in
how CPUs access operands or data in
memory.
Immediate, direct, indirect, register, and
indexed are common addressing modes.
Each mode offers advantages and
disadvantages, balancing efficiency and
flexibility in executing instructions.