Addressing mode

samranagultasab 195 views 14 slides Dec 14, 2020
Slide 1
Slide 1 of 14
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10
Slide 11
11
Slide 12
12
Slide 13
13
Slide 14
14

About This Presentation

addressing mode


Slide Content

ADDRESSING MODE

TYPES OF ADDRESSING MODES: IMPLIED MODE IMMEDIATE MODE REGISTER MODE REGISTER INDRECT MODE AUTO-INCREMENT AUTO-DECREMENT DIRECT ADDRESS MODE INDIRECT ADDRESS MODE RELATIVE ADDRESS MODE INDEXED ADDRESSING MODE BASE REGISTER ADDRESSING MODE

IMPLIED MODE: In this mode the operands are specified implicitly in the definition of Instruction.   For example, the instruction "complement accumulator" i.e. CMA is an implied- mode instruction because the operand in the accumulator register is implied in the definition of the instruction.

IMMEDIATE MODE: In this, operand is directly provided as a constant. Data is constant, No computation required to calculate effective address as data is directly given in instruction. When we use constants in programming, it means immediate mode is involved. Range of operand depends on length of address field.

REGISTER MODE: Operand is present in register. Register number is written in instruction. Address field represent the number of register. Size of instruction is small as registers are small in size.

REGISTER INDIRECT MODE: Register contains address of operand rather than operand itself. Address of memory is present in register. Memory contains operand.

AUTO-INCREMENT MODE: It is Special case of register indirect addressing mode.

DIRECT ADDRESS MODE: Actual address is given in the instruction. It is used to access variables. Effective address is directly given in instructions.

Indirect addressing mode: Used to implement pointers and passing parameters. Two memory access is required.

RELATIVE ADDRESS MODE:

INDEXED ADDRESSING MODE: Use to access or implement the array efficiently. Multiple registers required to implement. Any element can be accessed without changing instruction.

BASE REGISTER ADDRESSING MODE Used in program relocation.
Tags