Beruflich Dokumente
Kultur Dokumente
Instruction Execution
Instruction execution is a 3-phase process:
Instruction Execution 6
Hamacher et al, Computer Organization ECECS 326
Addressing Modes
Types:
1. Register mode
2. Absolute mode
3. Immediate mode
4. Indirect mode
5. Index mode
6. Autoincrement mode
7. Autodecrement mode
Addressing Modes 7
Hamacher et al, Computer Organization ECECS 326
Addressing Modes: Register mode
PC Add R4,R5
Description: The operand is the contents
of a CPU register; the name of the register
R4 45 is given in the instruction.
R5 55
Addressing Modes: Register mode 8
Hamacher et al, Computer Organization ECECS 326
Addressing Modes: Absolute mode
Instruction
Memory Description: The effective
(memory) address of the
location of the operand is
given explicitly as part of the
Operand instruction.
Addressing Modes: Absolute mode 9
Hamacher et al, Computer Organization ECECS 326
Addressing Modes: Immediate mode
Instruction
Description: The operand is given explicitly as
part of the instruction.
Operand
Addressing Modes: Immediate mode 10
Hamacher et al, Computer Organization ECECS 326
Addressing Modes: Indirect mode
Instruction
Description: The effective
Memory address of the operand is
contained in a memory location
(or CPU register) whose
address is explicitly given in the
instruction.
Operand
Addressing Modes: Indirect mode 11
Hamacher et al, Computer Organization ECECS 326
Addressing Modes: Indexed mode
Description: The
Instruction effective address of the
operand is computed
by adding an index
operand value (commonly from
specifier Memory
a CPU register) to the
operand address given
in the instruction. When
+ Operand a CPU register holds
the PC, this addressing
register mode can be used
file
to get PC relative
addressing.
Addressing Modes: Indexed mode 12
Hamacher et al, Computer Organization ECECS 326
Addressing Modes: Autoincrement mode
Description: The
Memory
Instruction effective address of the
operand is the contents
of a register specified
Operand in the instruction.
After accessing the
+ operand, the contents
register of the register are
file
incremented to point to
the next item on the list.
Addressing Modes: Autoincrement mode 13
Hamacher et al, Computer Organization ECECS 326
Addressing Modes: Autodecrement mode
Instruction Description: The
Memory contents of a
register specified
in the instruction is
decremented. The new
− Operand
register value is used
register as the effective address
file
of the operand.
Addressing Modes: Autodecrement mode 14