SlideShare a Scribd company logo
1 of 15
Addressing modes-8086
• Register Addressing Modes
• mov ax, bx ;Copies the value from BX into AX
  mov dl, al ;Copies the value from AL into DL
  mov si, dx ;Copies the value from DX into SI
  mov sp, bp ;Copies the value from BP into SP
  mov dh, cl ;Copies the value from CL into DH
  mov ax, ax ;Yes, this is legal!
Memory Addressing Modes

• The Displacement Only Addressing Mode
• mov al,ds:[8088h] ; loads the al register with a
  copy of the byte at memory location 8088h
• mov ax, cs:[1234h]
• The Register Indirect Addressing Modes
• mov al, [bx]
• mov al, [bp]
• mov al, [si]
• mov al, [di];
these addressing modes reference the byte at the
  offset found in the bx, bp, si, or di register,
  respectively. The [bx], [si], and [di] modes use
  the ds segment by default. The [bp] addressing
  mode uses the stack segment (ss) by default.
 The segment override prefix symbols if you wish to
  access data in different segments. The following
  instructions demonstrate the use of these
  overrides: mov al, cs:[bx]      mov al, ds:[bp]
•   Indexed Addressing Modes
•  mov al, disp[bx]
•   mov al, disp[bp]
•  mov al, disp[si];
•   If bx contains 1000h, then the instruction mov
   cl,20h[bx] will load cl from memory location ds:1020h.
   Likewise, if bp contains 2020h, mov dh,1000h[bp] will
   load dh from location ss:3020
 segment override prefixes to specify a different
   segment: mov al, ss:disp[bx]
• mov al, es:disp[bp]
• mov al, cs:disp[si]
• mov al, ss:disp[di]
• Based Indexed Addressing Modes
mov al, [bx][si]
mov al, [bx][di]
mov al, [bp][si]
 mov al, [bp][di];
Suppose that bx contains 1000h and si contains
  880h. Then the instruction mov al,[bx][si]
  would load al from location DS:1880h.
• Based Indexed Plus Displacement Addressing
  Mode
mov al, disp[bx][si]
 mov al, disp[bx+di]
 mov al, [bp+si+disp]
mov al, [bp][di][disp]
INSTRUCTIONS-8086
CMPSB
                                           MOV
AAA         CMPSW   JAE    JNBE   JPO              RCR     SCASB
                                           MOVSB
AAD         CWD     JB     JNC    JS               REP     SCASW
                                           MOVSW
AAM         DAA     JBE    JNE    JZ               REPE    SHL
                                           MUL
AAS         DAS     JC     JNG    LAHF             REPNE   SHR
                                           NEG
ADC         DEC     JCXZ   JNGE   LDS              REPNZ   STC
                                           NOP
ADD         DIV     JE     JNL    LEA              REPZ    STD
                                           OR
AND         HLT     JG     JNLE   LES              RET     STI
                                           OUT
CALL        IDIV    JGE    JNO    LODSB            RETF    STOSB
                                           POP
CBW         IMUL    JL     JNP    LODSW            ROL     STOSW
                                           POPA
CLC         IN      JLE    JNS    LOOP             ROR     SUB
                                           POPF
CLD         INC     JMP    JNZ    LOOPE            SAHF    TEST
                                           PUSH
CLI         INT     JNA    JO     LOOPNE           SAL     XCHG
                                           PUSHA
CMC         INTO    JNAE   JP     LOOPNZ           SAR     XLATB
                                           PUSHF
CMP         IRET    JNB    JPE    LOOPZ            SBB     XOR
                                           RCL
            JA



 12/06/12                                                      15

More Related Content

Viewers also liked

Interrupts on 8086 microprocessor by vijay kumar.k
Interrupts on 8086 microprocessor by vijay kumar.kInterrupts on 8086 microprocessor by vijay kumar.k
Interrupts on 8086 microprocessor by vijay kumar.kVijay Kumar
 
Introduction to 8086 microprocessor
Introduction to 8086 microprocessorIntroduction to 8086 microprocessor
Introduction to 8086 microprocessorShreyans Pathak
 
8086 pin diagram description
8086 pin diagram description8086 pin diagram description
8086 pin diagram descriptionAkhil Singal
 
11 instruction sets addressing modes
11  instruction sets addressing modes 11  instruction sets addressing modes
11 instruction sets addressing modes Sher Shah Merkhel
 
Memory Segmentation of 8086
Memory Segmentation of 8086Memory Segmentation of 8086
Memory Segmentation of 8086Nikhil Kumar
 
Flags registor of 8086 processor
Flags registor of 8086 processorFlags registor of 8086 processor
Flags registor of 8086 processorFazle Akash
 
INTERRUPTS OF 8086 MICROPROCESSOR
INTERRUPTS OF 8086 MICROPROCESSORINTERRUPTS OF 8086 MICROPROCESSOR
INTERRUPTS OF 8086 MICROPROCESSORGurudev joshi
 
Assembly language 8086
Assembly language 8086Assembly language 8086
Assembly language 8086John Cutajar
 

Viewers also liked (9)

Interrupts on 8086 microprocessor by vijay kumar.k
Interrupts on 8086 microprocessor by vijay kumar.kInterrupts on 8086 microprocessor by vijay kumar.k
Interrupts on 8086 microprocessor by vijay kumar.k
 
Introduction to 8086 microprocessor
Introduction to 8086 microprocessorIntroduction to 8086 microprocessor
Introduction to 8086 microprocessor
 
8086 pin diagram description
8086 pin diagram description8086 pin diagram description
8086 pin diagram description
 
11 instruction sets addressing modes
11  instruction sets addressing modes 11  instruction sets addressing modes
11 instruction sets addressing modes
 
Memory Segmentation of 8086
Memory Segmentation of 8086Memory Segmentation of 8086
Memory Segmentation of 8086
 
Flags registor of 8086 processor
Flags registor of 8086 processorFlags registor of 8086 processor
Flags registor of 8086 processor
 
Addressing modes
Addressing modesAddressing modes
Addressing modes
 
INTERRUPTS OF 8086 MICROPROCESSOR
INTERRUPTS OF 8086 MICROPROCESSORINTERRUPTS OF 8086 MICROPROCESSOR
INTERRUPTS OF 8086 MICROPROCESSOR
 
Assembly language 8086
Assembly language 8086Assembly language 8086
Assembly language 8086
 

14653 8086pin discription

  • 1.
  • 2.
  • 3.
  • 4.
  • 5.
  • 6.
  • 7.
  • 8. Addressing modes-8086 • Register Addressing Modes • mov ax, bx ;Copies the value from BX into AX mov dl, al ;Copies the value from AL into DL mov si, dx ;Copies the value from DX into SI mov sp, bp ;Copies the value from BP into SP mov dh, cl ;Copies the value from CL into DH mov ax, ax ;Yes, this is legal!
  • 9. Memory Addressing Modes • The Displacement Only Addressing Mode • mov al,ds:[8088h] ; loads the al register with a copy of the byte at memory location 8088h • mov ax, cs:[1234h]
  • 10. • The Register Indirect Addressing Modes • mov al, [bx] • mov al, [bp] • mov al, [si] • mov al, [di]; these addressing modes reference the byte at the offset found in the bx, bp, si, or di register, respectively. The [bx], [si], and [di] modes use the ds segment by default. The [bp] addressing mode uses the stack segment (ss) by default. The segment override prefix symbols if you wish to access data in different segments. The following instructions demonstrate the use of these overrides: mov al, cs:[bx] mov al, ds:[bp]
  • 11. Indexed Addressing Modes • mov al, disp[bx] • mov al, disp[bp] • mov al, disp[si]; • If bx contains 1000h, then the instruction mov cl,20h[bx] will load cl from memory location ds:1020h. Likewise, if bp contains 2020h, mov dh,1000h[bp] will load dh from location ss:3020 segment override prefixes to specify a different segment: mov al, ss:disp[bx] • mov al, es:disp[bp] • mov al, cs:disp[si] • mov al, ss:disp[di]
  • 12. • Based Indexed Addressing Modes mov al, [bx][si] mov al, [bx][di] mov al, [bp][si] mov al, [bp][di]; Suppose that bx contains 1000h and si contains 880h. Then the instruction mov al,[bx][si] would load al from location DS:1880h.
  • 13. • Based Indexed Plus Displacement Addressing Mode mov al, disp[bx][si] mov al, disp[bx+di] mov al, [bp+si+disp] mov al, [bp][di][disp]
  • 15. CMPSB MOV AAA CMPSW JAE JNBE JPO RCR SCASB MOVSB AAD CWD JB JNC JS REP SCASW MOVSW AAM DAA JBE JNE JZ REPE SHL MUL AAS DAS JC JNG LAHF REPNE SHR NEG ADC DEC JCXZ JNGE LDS REPNZ STC NOP ADD DIV JE JNL LEA REPZ STD OR AND HLT JG JNLE LES RET STI OUT CALL IDIV JGE JNO LODSB RETF STOSB POP CBW IMUL JL JNP LODSW ROL STOSW POPA CLC IN JLE JNS LOOP ROR SUB POPF CLD INC JMP JNZ LOOPE SAHF TEST PUSH CLI INT JNA JO LOOPNE SAL XCHG PUSHA CMC INTO JNAE JP LOOPNZ SAR XLATB PUSHF CMP IRET JNB JPE LOOPZ SBB XOR RCL JA 12/06/12 15