Presentation is loading. Please wait.

Presentation is loading. Please wait.

Addressing Modes of 8086 Processor Ammar Anwar Khan Electrical Engineer King Saud University Riyadh Saudi Arabia.

Similar presentations


Presentation on theme: "Addressing Modes of 8086 Processor Ammar Anwar Khan Electrical Engineer King Saud University Riyadh Saudi Arabia."— Presentation transcript:

1 Addressing Modes of 8086 Processor Ammar Anwar Khan Electrical Engineer King Saud University Riyadh Saudi Arabia

2 Addressing Modes Addressing Modes which are common to 8086 processor. Immediate Addressing Mode. Register Addressing Mode. Direct addressing Mode. Register Indirect Addressing Mode.

3 Immediate Addressing Mode MOV AL,10h MOV AX,0AC8h MOV AH,4ch MOV DX,1000h

4 Register Addressing Mode MOV AL,BL MOV AX,BX

5 Direct addressing Mode MOV DX,[1000H]

6 Register Indirect Addressing Mode MOV AL,[BX] MOV AX,[BX]

7 PUSH & POP MOV AX, 30 PUSH AX POP BX SS=FFEE SS=FFEC SS=FFEE

8

9 The XCHG Instruction The XCHG InstructionExchange The XCHG (exchange) instruction swaps two values. The general form is: XCHG operand1, operand2 There are four specific forms of this instruction on the 80x86: XCHG reg, mem XCHG reg, reg

10 The LEA Instruction Load effective address The LEA (Load Effective Address) loads the specified 16 bit general purpose register with the effective address of the specified memory location. LEA takes the form: LEA destinaton, source LEA DX,[BX][SI]+100H DX=effective address=2000+3500+100=5600H

11 The STOSx Instruction Store byte or word string The STOSx (where x: B or W), copies a byte or word from AX, AL to a location pointed by ES:DI and updates DI to point to the next string element. If DF is 0, DI increment otherwise decrements

12 The LDS Instruction Load Data Segment register Load into destination the contents of two memory locations and segment register the next two memory locations: LDS destinaton, source DS:1200=46 DS:1201:10 DS:1202:38 DS:1202:82 LDS DI,[1200] ; DI=1046 and DS=8238

13 The MOVSx Instruction Move Byte or word String Moves byte or word from memory location pointed to by DS:SI to the memory location pointed to by ES:DI. SI and DI increment if DF is 0 otherwise decrement: LEA destinaton, source LEA DX,[BX][SI]+100H DX=effective address=2000+3500+100=5600H

14 The XLAT Instruction Translate Replace the contents of AL with the contents of Lookup table pointed by AL, BX contains the starting location of Lookup table.

15 Thanks END


Download ppt "Addressing Modes of 8086 Processor Ammar Anwar Khan Electrical Engineer King Saud University Riyadh Saudi Arabia."

Similar presentations


Ads by Google