Instruction Formats and Addressing Modes
Instruction Formats and Addressing Modes
and
Addressing Modes
• Three-Address Instructions:
• Two-Address Instructions:
• One-Address Instructions:
• Zero-Address Instructions:
• RISC Instructions:
3. Register Mode: The instruction specifies a register in the CPU that is holding the
operand.
4. Register Indirect Mode: The instruction specifies a register in the CPU whose
contents give the address of the operand in the memory.
5. Autoincrement mode: This is similar to register indirect mode except that the
register is incremented after its value is used to access memory.
6. Autodecrement mode: This is similar to register indirect mode except that the
register is decremented before its value is used to access memory.
7. Direct Address Mode: The effective address is equal to the address part of the
instruction.
8. Indirect Address Mode: The address field of the instruction gives the address
where the effective address is stored in memory.
9. Relative Address Mode: The content of the program counter is added to the
address part of the instruction in order to obtain the effective address.
10. Indexed Addressing Mode: The content of an index register is added to the
address part of the instruction in order to obtain the effective address.
11. Base Register Addressing Mode: The content of a base register is added to the
address part of the instruction in order to obtain the effective address.