Index registers in Central Processing Unit

232 views 10 slides Dec 15, 2023
Slide 1
Slide 1 of 10
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10

About This Presentation

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


Slide Content

Index registers By: U F

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.

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.

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.

Types of index Registers 1. Source index : Points to memory location in data segment. Its offset is relative to data segment. 16 bits memory.

2. Destination index : Same as source index. String operations uses destination index to access memory location.

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.

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.

5. Instruction pointer register It is a control register. Holds location of next instruction in pipeline. Increments itself after every instruction.

6. Flag Register: Holds current status of program.