SlideShare uma empresa Scribd logo
1 de 5
8086 Address Modes
The way in which an operand is specified is called the Address Mode.

Addressing Modes on the 8086
The x86 instructions use five different operand types: registers, constants, and three memory
addressing schemes. Each form is called an addressing mode. The x86 processors support
the register addressing mode,
the immediate addressing mode,
the direct addressing mode,
the indirect addressing mode,
the base plus index addressing mode,
the register relative addressing mode,
and the base relative plus index addressing mode.
Register operands are the easiest to understand. Consider the following forms of themov
instruction:
mov ax, ax
mov ax, bx
mov ax, cx
mov ax, dx
The first instruction accomplishes absolutely nothing. It copies the value from the axregister
back into the ax register. The remaining three instructions copy the value of bx, cx and dx into
ax. Note that the original values of bx, cx, and dx remain the same. The first operand (the
destination) is not limited to ax; you can move values to any of these registers.

Constants are also pretty easy to deal with. Consider the following instructions:
mov ax, 25
mov bx, 195
mov cx, 2056
mov dx, 1000

These instructions are all pretty straightforward; they load their respective registers with the
specified hexadecimal constant.
There are three addressing modes which deal with accessing data in memory. Theseaddressing
modes take the following forms:
mov ax, [1000]
mov ax, [bx]
mov ax, [1000+bx]
The first instruction above uses the direct addressing mode to load ax with the 16 bit value stored
in memory starting at location 1000 hex.
The mov ax, [bx] instruction loads ax from the memory location specified by the contents of the
bx register. This is an indirect addressing mode. Rather than using the value in bx, this
instruction accesses to the memory location whose address appears in bx.

Note that the following two instructions:
mov bx, 1000
mov ax, [bx]
are equivalent to the single instruction:
mov ax, [1000]
Of course, the second sequence is preferable. However, there are many cases where the use of
indirection is faster, shorter, and better.

Another addressing mode is the base plusindex addressing mode. An example of this memory
addressing mode is
mov ax, [1000+bx]
This instruction adds the contents of bx with 1000 to produce the address of the memory value to
fetch. This instruction is useful for accessing elements of arrays, records, and other data
structures.
8086
8086

Mais conteúdo relacionado

Destaque

CYP resume new 2015
CYP resume new 2015CYP resume new 2015
CYP resume new 2015
Cristina Yu
 
Whitemont Services Offer FR
Whitemont Services Offer FRWhitemont Services Offer FR
Whitemont Services Offer FR
Denis Pap
 
Generic conventions of magazines
Generic conventions of magazinesGeneric conventions of magazines
Generic conventions of magazines
maddisonallin
 
Mapas conceptuales
Mapas conceptualesMapas conceptuales
Mapas conceptuales
Luis M
 
Competition Presentation (Secret)
Competition Presentation (Secret)Competition Presentation (Secret)
Competition Presentation (Secret)
Lance Kimbro
 
Solubilidadyconductividadelectricadelassales
SolubilidadyconductividadelectricadelassalesSolubilidadyconductividadelectricadelassales
Solubilidadyconductividadelectricadelassales
Arantza Al
 
10 Famous Landmarks Surrounded By Legends
10 Famous Landmarks Surrounded By Legends10 Famous Landmarks Surrounded By Legends
10 Famous Landmarks Surrounded By Legends
mazuelos
 

Destaque (18)

CYP resume new 2015
CYP resume new 2015CYP resume new 2015
CYP resume new 2015
 
Los Parques Educativos se llenan de Cultura
Los Parques Educativos se llenan de Cultura Los Parques Educativos se llenan de Cultura
Los Parques Educativos se llenan de Cultura
 
Planeación Bacorehuis
Planeación BacorehuisPlaneación Bacorehuis
Planeación Bacorehuis
 
Planeación Tic
Planeación TicPlaneación Tic
Planeación Tic
 
revista
revistarevista
revista
 
Circo del Sol
Circo del SolCirco del Sol
Circo del Sol
 
The Bermuda Triangle
The Bermuda TriangleThe Bermuda Triangle
The Bermuda Triangle
 
Evaluation for social welfare service (2)
Evaluation for social welfare service (2)Evaluation for social welfare service (2)
Evaluation for social welfare service (2)
 
Whitemont Services Offer FR
Whitemont Services Offer FRWhitemont Services Offer FR
Whitemont Services Offer FR
 
Generic conventions of magazines
Generic conventions of magazinesGeneric conventions of magazines
Generic conventions of magazines
 
Mapas conceptuales
Mapas conceptualesMapas conceptuales
Mapas conceptuales
 
Atmosphere On Tour - One Search
Atmosphere On Tour - One SearchAtmosphere On Tour - One Search
Atmosphere On Tour - One Search
 
Sistemas de Entrada y Salida ( I/O)
Sistemas de Entrada y Salida ( I/O)Sistemas de Entrada y Salida ( I/O)
Sistemas de Entrada y Salida ( I/O)
 
Competition Presentation (Secret)
Competition Presentation (Secret)Competition Presentation (Secret)
Competition Presentation (Secret)
 
Kimia unsur
Kimia unsurKimia unsur
Kimia unsur
 
ITWS 4310: Building and Consuming the Web of Data (Fall 2013)
ITWS 4310: Building and Consuming the Web of Data (Fall 2013)ITWS 4310: Building and Consuming the Web of Data (Fall 2013)
ITWS 4310: Building and Consuming the Web of Data (Fall 2013)
 
Solubilidadyconductividadelectricadelassales
SolubilidadyconductividadelectricadelassalesSolubilidadyconductividadelectricadelassales
Solubilidadyconductividadelectricadelassales
 
10 Famous Landmarks Surrounded By Legends
10 Famous Landmarks Surrounded By Legends10 Famous Landmarks Surrounded By Legends
10 Famous Landmarks Surrounded By Legends
 

Semelhante a 8086

addressing-modes-of-8086-mr-binu-joy-2.pptx
addressing-modes-of-8086-mr-binu-joy-2.pptxaddressing-modes-of-8086-mr-binu-joy-2.pptx
addressing-modes-of-8086-mr-binu-joy-2.pptx
johnpragasam1
 
Lecture 28 , 29 & 30(instruction set & addressing mode of 8086.pptx
Lecture 28 , 29 & 30(instruction set & addressing mode of 8086.pptxLecture 28 , 29 & 30(instruction set & addressing mode of 8086.pptx
Lecture 28 , 29 & 30(instruction set & addressing mode of 8086.pptx
VikasMahor3
 

Semelhante a 8086 (20)

Lecture 11
Lecture 11Lecture 11
Lecture 11
 
Addressing mode of 80286 microprocessor
Addressing mode of 80286 microprocessorAddressing mode of 80286 microprocessor
Addressing mode of 80286 microprocessor
 
8086addressingmodes-200319141110.pdf
8086addressingmodes-200319141110.pdf8086addressingmodes-200319141110.pdf
8086addressingmodes-200319141110.pdf
 
8086 addressing modes
8086 addressing modes8086 addressing modes
8086 addressing modes
 
Notes 8086 instruction format
Notes 8086 instruction formatNotes 8086 instruction format
Notes 8086 instruction format
 
Chapter 3 INSTRUCTION SET AND ASSEMBLY LANGUAGE PROGRAMMING
Chapter 3 INSTRUCTION SET AND ASSEMBLY LANGUAGE PROGRAMMINGChapter 3 INSTRUCTION SET AND ASSEMBLY LANGUAGE PROGRAMMING
Chapter 3 INSTRUCTION SET AND ASSEMBLY LANGUAGE PROGRAMMING
 
lect 03- MIT Addressing Modes.pdf
lect 03- MIT Addressing Modes.pdflect 03- MIT Addressing Modes.pdf
lect 03- MIT Addressing Modes.pdf
 
addressing-modes-of-8086-mr-binu-joy-2 (2).pptx
addressing-modes-of-8086-mr-binu-joy-2 (2).pptxaddressing-modes-of-8086-mr-binu-joy-2 (2).pptx
addressing-modes-of-8086-mr-binu-joy-2 (2).pptx
 
Chapter 3 programming concepts-ii
Chapter 3  programming concepts-iiChapter 3  programming concepts-ii
Chapter 3 programming concepts-ii
 
8086 add mod
8086 add mod8086 add mod
8086 add mod
 
All-addressing-modes of the 80386 /microprocessor.pptx
All-addressing-modes of the 80386 /microprocessor.pptxAll-addressing-modes of the 80386 /microprocessor.pptx
All-addressing-modes of the 80386 /microprocessor.pptx
 
Adressing modes of 8086
Adressing modes of 8086Adressing modes of 8086
Adressing modes of 8086
 
Arrays and addressing modes
Arrays and addressing modesArrays and addressing modes
Arrays and addressing modes
 
Mastering Assembly Language: Programming with 8086
Mastering Assembly Language: Programming with 8086Mastering Assembly Language: Programming with 8086
Mastering Assembly Language: Programming with 8086
 
1.ADDRESSING MODES OF 8086.ppt
1.ADDRESSING MODES OF 8086.ppt1.ADDRESSING MODES OF 8086.ppt
1.ADDRESSING MODES OF 8086.ppt
 
Addressing modes of 8086 - Binu Joy
Addressing modes of 8086 - Binu JoyAddressing modes of 8086 - Binu Joy
Addressing modes of 8086 - Binu Joy
 
addressing-modes-of-8086-mr-binu-joy-2.pptx
addressing-modes-of-8086-mr-binu-joy-2.pptxaddressing-modes-of-8086-mr-binu-joy-2.pptx
addressing-modes-of-8086-mr-binu-joy-2.pptx
 
Intrl 8086 instruction set
Intrl 8086 instruction setIntrl 8086 instruction set
Intrl 8086 instruction set
 
Addressing modes of 8086
Addressing modes of 8086Addressing modes of 8086
Addressing modes of 8086
 
Lecture 28 , 29 & 30(instruction set & addressing mode of 8086.pptx
Lecture 28 , 29 & 30(instruction set & addressing mode of 8086.pptxLecture 28 , 29 & 30(instruction set & addressing mode of 8086.pptx
Lecture 28 , 29 & 30(instruction set & addressing mode of 8086.pptx
 

Último

1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
QucHHunhnh
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
QucHHunhnh
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
heathfieldcps1
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
ciinovamais
 

Último (20)

Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptx
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docx
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docx
 
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-IIFood Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 

8086

  • 1. 8086 Address Modes The way in which an operand is specified is called the Address Mode. Addressing Modes on the 8086 The x86 instructions use five different operand types: registers, constants, and three memory addressing schemes. Each form is called an addressing mode. The x86 processors support the register addressing mode, the immediate addressing mode, the direct addressing mode, the indirect addressing mode, the base plus index addressing mode, the register relative addressing mode, and the base relative plus index addressing mode. Register operands are the easiest to understand. Consider the following forms of themov instruction: mov ax, ax mov ax, bx mov ax, cx mov ax, dx The first instruction accomplishes absolutely nothing. It copies the value from the axregister back into the ax register. The remaining three instructions copy the value of bx, cx and dx into ax. Note that the original values of bx, cx, and dx remain the same. The first operand (the destination) is not limited to ax; you can move values to any of these registers. Constants are also pretty easy to deal with. Consider the following instructions: mov ax, 25
  • 2. mov bx, 195 mov cx, 2056 mov dx, 1000 These instructions are all pretty straightforward; they load their respective registers with the specified hexadecimal constant. There are three addressing modes which deal with accessing data in memory. Theseaddressing modes take the following forms: mov ax, [1000] mov ax, [bx] mov ax, [1000+bx] The first instruction above uses the direct addressing mode to load ax with the 16 bit value stored in memory starting at location 1000 hex. The mov ax, [bx] instruction loads ax from the memory location specified by the contents of the bx register. This is an indirect addressing mode. Rather than using the value in bx, this instruction accesses to the memory location whose address appears in bx. Note that the following two instructions: mov bx, 1000 mov ax, [bx] are equivalent to the single instruction: mov ax, [1000] Of course, the second sequence is preferable. However, there are many cases where the use of indirection is faster, shorter, and better. Another addressing mode is the base plusindex addressing mode. An example of this memory addressing mode is
  • 3. mov ax, [1000+bx] This instruction adds the contents of bx with 1000 to produce the address of the memory value to fetch. This instruction is useful for accessing elements of arrays, records, and other data structures.