INDEX REGISTERS?
Area of memory assigned to a processor.
Can store addresses of elements of an array.
Low level areas Of memory.
Usually accessible though assembly language.
#COMPUTER_ORGANIZATION_AND_ASSEMBLY_LANGUAGE
2. What are index registers?
Area of memory assigned to a processor.
Can store addresses of elements of an array.
Low level areas Of memory.
Usually accessible though assembly
language.
3. Why are they used?
Used for very fast counter for stepping
through memory address.
To keep track such as looping.
Holds current offset of a memory location.
4. What’s an offset ???
A process that specifies number of bytes
in memory
Starting at one point, moving by the
offset, seeing where you are now.
5. Types of index Registers
1. Source index :
Points to memory location in data
segment.
Its offset is relative to data segment.
16 bits memory.
6. 2. Destination index :
Same as source index.
String operations uses destination
index to access memory location.
7. 3. Stack Pointer:
Points at program stack.
Used in conjunction with stack segment for
accessing stack segment.
Points at top most item of stack.
Offset address is relative to stack segment.
8. 4. Base Pointer :
Points data in stack segment.
Unlike stack pointer we can use base
pointer to access data in other
segments.
Offset address is relative to base
segment.
9. 5. Instruction pointer register
It is a control register.
Holds location of next instruction in
pipeline.
Increments itself after every
instruction.