Explain index mode and base address mode (with examples) available in microprocessors.
Index Mode and Base Address Mode:
- Address supplied through the instruction is added to an index register's contents.
- Base address mode is same except, the index register is replaced through a base address register.
Illustration:
LDAC 5(X); here X = 10
Reads data by location (5 + 10) = 15 and stores this in the accumulator.