Ch3. Addressing Modes Flashcards
Register mode
The operand is stored in one of the registers.
Immediate (or literal) mode:
The value of the operand is a part of the instruction
Direct (or absolute) mode:
The address of the operand in memory is stored in the instruction
Register indirect mode:
The address of the operand in memory is stored in one of the registers (usually an address register).
Displacement mode:
The address of the operand is the sum of the contents of a register and a value, called a displacement, specified in the instruction.
Indexed mode
Works essentially as the register indirect mode. The register containing the address is called index register
PC- relative mode
An offset or displacement is added to the PC.
The PC-relative mode is often used with branches and jumps.Also used in relocatable code where the code and data are both loaded into memory at fixed positions relative to each other.