MCS-012Addressing Mode
MCS-012Addressing Mode
The address of the operand is obtained by adding to the contents of the general
register (called index register) a constant value. The number of the index register
and the constant value are included in the instruction code. Index Mode is used
to access an array whose elements are in successive memory locations. The
content of the instruction code, represents the starting address of the array
and the value of the index register, and the index value of the current element.
By incrementing or decrementing index register different element of the array
can be accessed.
Effective Address = index + Address A
2. Base register Addressing mode:-