0% found this document useful (0 votes)
12 views

Addressing Modes

Uploaded by

Mashaa
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
12 views

Addressing Modes

Uploaded by

Mashaa
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 5

Addressing modes

Addressing modes:The way of specifying data to be operated by an


instruction is known as addressing modes.
(or)
The way for which an operand is specified for an instruction in the
accumulator, in a general purpose register or in memory location, is
called addressing mode.
There are 8 different addressing modes:
1)Immediate addressing mode
2)Register addressing mode
3)Direct addressing mode
4)Register indirect addressing mode
5)Based addressing mode
6)Indexed addressing mode
7)Based indexed addressing mode
8)Based index with displacement mode
1)Immediate Addressing: In immediate addressing, the operand is
specified in the instruction itself.
Examples:
 MOV AL, 35H
 MOV BX, 0301H
 ADD AX, 4836H
2) Register Addressing: In register addressing, the operand is
placed in one of the 16-bit or 8-bit general purpose registers.
Examples:
 MOV AX, CX (Copies content of 16 bit AX register into 16 bit
CX register)
 ADD AL, BL
 ADD CX, DX
3)Direct addressing mode:The addressing mode in which the effective
address of the memory location is written directly in the instruction.
Examples: MOV AX, [1592H]
MOV AL, [0300H]
4)Register indirect addressing mode: This addressing mode allows data
to be addressed at any memory location through an offset address held in
any of the following registers: BP, BX, DI & SI.
Example:MOV AX, [BX] ; Suppose the register BX contains 4895H,
then the contents ; 4895H are moved to AX
5)Based addressing mode: In this addressing mode, the offset
address of the operand is given by the sum of contents of the
BX/BP registers and 8-bit/16-bit displacement.
Example: MOV DX, [BX+04], ADD CL, [BX+08]
6)Indexed addressing mode: In this addressing mode, the operands
offset address is found by adding the contents of SI or DI register and
8-bit/16-bit displacements.
Examples: MOV BX, [SI+16]
ADD AL, [DI+16]
7) Based-index addressing mode: In this addressing mode, the offset
address of the operand is computed by summing the base register to the
contents of an Index register.
Example: ADD CX, [AX+SI]
MOV AX, [AX+DI]
8) Based indexed with displacement mode: In this addressing mode,
the operands offset is computed by adding the base register contents.
An Index registers contents and 8 or 16-bit displacement
Example:MOV AX, [BX+DI+08],
ADD CX, [BX+SI+16]

You might also like