AddressingModes25
AddressingModes25
AddressingModes25
Overview
Introduction General Register Organization Stack Organization Instruction Formats Addressing Modes Data Transfer and Manipulation Program Control and Program Interrupt Reduced Instruction Set Computer
CSE 211, Computer Organization and Architecture Harjeet
Addressing Mode
Addressing Modes
- Specifies a rule for interpreting or modifying the address field of the instruction (before the operand is actually referenced) - Variety of addressing modes - to give programming flexibility to the user - to use the 1. Implied Mode bits in the address field of the instruction efficiently - Address of the operands are specified implicitly in the definition of the instruction - No need to specify address in the instruction - EA = AC, or EA = Stack[SP] - Examples from Basic Computer - CLA, CME, INP
2. Immediate Mode
- Instead of specifying the address of the operand, operand itself is specified - No need to specify address in the instruction - However, operand itself needs to be specified - Sometimes, require more bits than the address - Fast to acquire an operand CSE 211, Computer Organization and Architecture Harjeet
Addressing Mode
3. Register Mode
Address specified in the instruction is the register address Designated operand need to be in a register Shorter address than the memory address Saving address field in the instruction Faster to acquire an operand than the memory addressing EA = IR(R) (IR(R): Register field of IR)
Harjeet
Addressing Mode
Addressing Mode
600
900
Addressing Effective Mode Address Direct address 500 /* AC (500) Immediate operand /* AC 500 Indirect address 800 /* AC ((500)) Relative address 702 /* AC (PC+500) Indexed address 600 /* AC (RX+500) Register /* AC R1 Register indirect 400 /* AC (R1) Autoincrement 400 /* AC (R1)+ Autodecrement 399 /* AC -(R)
*/ */ */ */ */ */ */ */ */
Content of AC 800 500 300 325 900 400 700 700 450
702
325
800
300
Harjeet