Addressing Modes.
Agenda:. Introduction Types Explanation in detail.
Team members: 22EG105N12: B.Sathvika Reddy 22EG105N31: M.Bhavani.
INTRODUCTION:. The term addressing modes refers to the way in which the operand of an instruction is specified. The addressing mode specifies a rule for interpreting or modifying the address field of the instruction before the operand is actually executed..
Types of Addressing Modes:. Implied Addressing Mode Immediate Addressing Mode Direct Addressing Mode Indirect Addressing Mode Register Mode Register Indirect Mode Autoincrement or Autodecrement Mode Relative Addressing Modes.
Implied Addressing Mode. 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] - Example instructions from Basic Computer: CLA, CME, INP.
Immediate Addressing 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.
Direct Addressing Mode. Instruction specifies the memory address which can be used directly to access the memory - Faster than the other memory addressing modes - Too many bits are needed to specify the address for a large physical memory space EA = IR(addr) (IR(addr): address field of IR).
Indirect Addressing Mode. A diagram of a computer system Description automatically generated.
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).
Register Indirect Mode. Instruction specifies a register which contains the memory address of the operand. - Saving instruction bits since register address is shorter than the memory address - Slower to acquire an operand than both the register addressing or memory addressing EA = [IR(R)] ([x]: Content of x).
Autoincrement or Autodecrement Mode. When the address in the register is used to access memory, the value in the register is incremented or decremented by 1 automatically..
Relative Addressing Modes. The Address fields of an instruction specifies the part of the address which can be used along with a designated register to calculate the address of the operand. - Address field of the instruction is short - Large physical memory can be accessed with a small number of addressbits EA = f(IR(address), R), R is sometimes implied.
A black text with a face and a smile Description automatically generated.