0% found this document useful (0 votes)
64 views2 pages

8086 Addressing Modes

The document discusses the 8 addressing modes of the 8086 processor: 1) Immediate, where data is in the instruction; 2) Register, where both operands are registers; 3) Direct, where the address is directly in the instruction; 4) Register indirect, where the address is in a register; 5) Based, using a base register and displacement; 6) Indexed, using an index register and displacement; 7) Based-index, using a base and index register; 8) Based indexed with displacement, using a base, index, and displacement. Examples are provided for each addressing mode.

Uploaded by

bt21me011
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
64 views2 pages

8086 Addressing Modes

The document discusses the 8 addressing modes of the 8086 processor: 1) Immediate, where data is in the instruction; 2) Register, where both operands are registers; 3) Direct, where the address is directly in the instruction; 4) Register indirect, where the address is in a register; 5) Based, using a base register and displacement; 6) Indexed, using an index register and displacement; 7) Based-index, using a base and index register; 8) Based indexed with displacement, using a base, index, and displacement. Examples are provided for each addressing mode.

Uploaded by

bt21me011
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

8086 Addressing Modes

The dilleent ways in which asource operand is denoted in an instruction is known as


nddressing modes. In other words, the way of specitying data to be operated by an instruction
isknown as addressing modes. There are 8 different addressing modes in 8086 programming
Immediate addressing mode
" Register addressing mode
Direct addressing mode
Register indirect addressing mode
" Based addressing mode
Indexed addressing mode
Based-index addressing mode
Bascd indexcd with displacement mode

1. Immediate addressing mode


The addressing mode in which the data operand is a part of the instruction itself is known as
immediate addressing mode.
Example
MOV CX,4929 H,
ADD AX, 2387 H,
MOV AL, FFH
2. Register addressing mode
Inthis type of addressing mode both the operands are registers. It means that the
register is the
source of an operand for an instruction.
Example
MOV CX, AX - copies the contents of the 16-bit AX register into the 16-bit CX register
ADD BX, AX
3. Direct addressing mode
In this type of addressing mode the effective address is directly given in the instruction as
displacement. The addressing mode in which the effective address of the memory location is
written directly in the instruction, It is also known as displacement mode.
Example
MOV Ax, [1592H]
MOV AL,[0300H]
4. Register indirect addressing mode
through an oflset
adaressing mode allows data to be addressed at any memory location
s
address held in any of the following registers: BP, BX, DI & SI.
Erample
MOVAAX, (BX]- Suppose the register BX contains 489SH, then the contents 4895H are
moved to AX

ADD CX,[BX]
5. Based addressing mode
In this addressing mode, the ofset 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
D0 register and 8-bit/16-bit displacements.
Example
MOV BX, [SI+16]
ADD AL, [DI+16]
7. Based-index addressing mode
summing the base
In this addressing mode, the offset address of the operand is computed by
register (BX or BP) tothe contents of an Index register (SI or DI).
Example
ADD CX, [AX+SI]
MOV AX, [AX+DI
8. Based indexed with displacement mode
mode, the operands offset is computed by adding the base register contents.
Inthis addressing displacement.
AnIndex registers contents and 8 or 16-bit
Example
MOV AX, [BX+Dl+08]
ADD CX, [BX+SI+16]

You might also like