0% found this document useful (0 votes)
12 views9 pages

Module 2 Addressing modes

The document discusses the various addressing modes used in 8086 programming, detailing eight different types. It explains immediate addressing mode, register indirect addressing mode, based addressing mode, and based indexed with displacement mode, providing examples for each. These modes dictate how source operands are referenced in instructions, impacting data manipulation in assembly language programming.

Uploaded by

mohsin shaikh
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)
12 views9 pages

Module 2 Addressing modes

The document discusses the various addressing modes used in 8086 programming, detailing eight different types. It explains immediate addressing mode, register indirect addressing mode, based addressing mode, and based indexed with displacement mode, providing examples for each. These modes dictate how source operands are referenced in instructions, impacting data manipulation in assembly language programming.

Uploaded by

mohsin shaikh
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/ 9

8086_Addressing modes

The different ways in which a source operand is denoted in an


instruction is known as addressing modes.
There are 8 different addressing modes in 8086 programming
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
Example
MOV CX, AX ; copies the contents of the 16-bit AX register into ; the 16-bit CX register,
ADD BX, AX
Example
MOV AX, [1592H], MOV AL, [0300H]
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
ADD CX, [BX]
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]
Example
MOV BX, [SI+16],
ADD AL, [DI+16]
Example
ADD CX, [AX+SI],
MOV AX, [AX+DI]
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

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy