Types of Addressing Flashcards
Immediate addressing
The operand is the actual value to be operated on. for example 3 or 75.
Direct Addressing
The operand holds the memory address of the value to be operated on. This is what is used in LMC.
Indirect Addressing
The operand is the location (typically a register) which holds the address of the data we want. This enables a larger range of addressable locations.
Indexed Addressing
The address of the operand is optained by adding to the contents of a general register (called the index register) a constant value. The number of the index register, and the constant value are included in the instruction code.
Used to access an array whose elements are in successive memory locations.