Gitika
Gitika
1 Instruction
Format and
Addressing Modes
in 8086 ,
Assembler &
Directives
Addressing Modes of 8086
BL 10H
This instruction will move the data 10H into BL register immediately.
2. Register Addressing Mode
BX CX
• In this mode the address of the data is directly specified in the instruction.
BL [4143H]
This instruction will move the data from the location 4143H in DS into CL.
4. Implied Addressing Mode
• In this mode the operands are implied and not specified in the
instruction.
• We do not give any data in instruction.
• In this mode effective address of the memory can be taken from one
of the Base register or index register specified in the instruction.
CL [BX]
CH [BX+1]
P.A=DS*10H+[BX]
2.Register Relative Indirect Addressing Mode
• In this the effective address of the data is specified by the sum of contents of
BX/BP register.
It moves a word from the address specified by BX+10 in Data segment to DX.
P.A=DS*10H+[BX+10]
3. Base Indexed Addressing Mode
• In this the effective address of the data is computed by adding the Base
register to the contents of the given index register.
CL DS:[BX+SI]
It moves The data from the address specified by the BX+SI in DS to the CL
register.
4. Relative Base Indexed Addressing Mode
• In this mode the address of the data is computed as the sum of base registers ,
index register and 8-bit or 16-bit displacement.
CL DS:[BX+SI+10H]
It moves The data from the address specified by the BX+SI+10H in DS to the CL
register.
Assembler Directives:-
The assembler directives are the special instructions used to indicate the
assembler how a program is to be assembled and executed in a proper way.
Ex., ASSUME,DB,DW,DD,DQ,DT,EQU,ORG,PROC,END,ENDP,ENDS,EXTRN.
• ASSUME:-
ASSUME directive assigns a logical segment to a physical segment at any
given time.
• .CODE:-
shortcut in definition if the code segment.
• .DATA:-
shortcut in definition of the data segment.
Thanks!