Various Addressing Modes of 8086 - 8088
Various Addressing Modes of 8086 - 8088
Various Addressing Modes of 8086 - 8088
MICROPROCESSOR AND MICROCONTROLLER
Contains assembly language and embedded C program based on 8085 microprocessor and 8051 microcontroller
Monday, March 19, 2012
Various addressing modes of 8086/8088
1) Register Addressing mode
2) Immediate Addressing mode
3) Register Indirect Addressing mode
4) Direct Addressing mode
5) Indexed Addressing mode
6) Base Relative Addressing mode
7) Base Indexed Addressing mode
Register Addressing Mode
Data transfer using registers is called register addressing mode. Here operand value is present in register. For
example
MOV AL,BL;
MOV AX,BX;
Immediate Addressing mode
When data is stored in code segment instead of data segment immediate addressing mode is used. Here operand
value is present in the instruction. For example
MOV AX, 12345;
Direct Addressing mode
When direct memory address is supplied as part of the instruction is called direct addressing mode. Operand
offset value with respect to data segment is given in instruction. For example
MOV AX, [1234];
ADD AX, [1234];
Register Indirect Addressing mode
Here operand offset is given in a cpu register. Register used are BX, SI(source index), DI(destination index), or
BP(base pointer). BP holds offset w.r.t Stack segment, but SI,DI and BX refer to data segment. For example
MOV [BX],AX;
ADD AX, [SI];
Indexed Addressing mode
Here operand offset is given by a sum of a value held in either SI, or DI register and a constant displacement Subscribe
specified as an operand. For example
Lets take arrays as an example. This is very efficient way of accessing arrays. Posts
My_array DB ‘1’, ‘2’, ‘3’,’4,’5’;
Comments
MOV SI, 3;
MOV AL, My_array[3];
So AL holds value 4.
Help Build PMO
Base Relative Addressing mode
Operand offset given by a sum of a value held either in BP, or BX and a constant offset sepecified as an operand. App
For example
Your Ideas Turned Into
MOV AX,[BP+1]; Reality. Give Your Ideas
JMP [BX+1]; For The Mobile App.
Base Indexed
Here operand offset is given by sum of either BX or BP with either SI or DI. For example
MOV AX, [BX+SI]
JMP [BP+DI]
Posted by k10blogger at 2:16 AM
Labels: Microprocessor 8086/8088 and interfacing
Sister Sites
10 comments: Other Engineering topics.
GLCD and AVR Applications
Timefreezer April 14, 2012 at 12:29 PM code.google.com
Cortex M3 Applications
Helpful... thanks a lot. code.google.com
Reply
http://iitestudent.blogspot.in/2012/03/variousaddressingmodesof80868088.html 1/3
3/9/2015 MICROPROCESSOR AND MICROCONTROLLER: Various addressing modes of 8086/8088
Replies Labels
k10blogger June 21, 2012 at 1:02 PM
Popular Posts
thank u..:)
keep visiting..:) Difference between MAX
and MIN mode
Maximum mode
Reply
Minimum Mode When
MN/MX(bar) low 8086 is
in maximum mode. When MN/MX(bar)
high 8086 is in minimum ...
GO GURL July 30, 2012 at 8:20 PM
Various addressing modes of
What about I/O port addressing modes? 8086/8088
Reply 1) Register Addressing mode
Immediate Addressing mode
Register Indirect Addressing mode
Replies
4) Direct ...
k10blogger August 3, 2012 at 11:04 AM Difference between macros and
Well I/O port addressed using direct addressing modes and indirect addressing modes. procedures
Direct mode example: Macros Procedures Accessed during
IN AX, PORTA assembly when name given to macro
is written as an instruction in the ...
IN AX, PORTB
OUT PORTA, AX
Assembler Directives of 8086/8088
OUT PORTB, AX
ASSUME This directive tells the
etc. assembler the name of the logical
segment it should use for a specified
Indirect example segment. For exam...
IN AX, DX
inputs 16 bit data "addressed" by DX Timing Diagram for LDA
IN AL, DX and STA instruction.
inputs 8 bit data "addressed" by DX Timing Diagram for LDA
OUT DX, AX and STA instruction.
outputs 16 bit data to the port addressed by DX
OUT DX, AL
outputs 8 bit data to the port addressed by DX
Blog Archive
Reply
► 2014 (7)
► 2013 (5)
▼ 2012 (38)
Akhil T RAJU February 12, 2014 at 8:47 PM
► December (1)
thank....ssssssss
► October (2)
Reply
► September (2)
► August (2)
Dimaaseea! April 1, 2014 at 2:07 PM
► June (6)
alah babah
► May (4)
Reply
► April (8)
▼ March (2)
Devendra Bhat October 5, 2014 at 1:07 PM Assembler Directives of
thanks Mr Blogger 8086/8088
its really helpful.... Various addressing
modes of 8086/8088
Reply
► February (8)
Replies
► January (3)
k10blogger November 5, 2014 at 8:27 PM
► 2011 (143)
You are welcome keep visiting....
Reply
http://iitestudent.blogspot.in/2012/03/variousaddressingmodesof80868088.html 2/3
3/9/2015 MICROPROCESSOR AND MICROCONTROLLER: Various addressing modes of 8086/8088
Contributors
Add comment Siddharth
Kaul
k10blogger
Enter your comment... Followers
Join this site
with Google Friend Connect
Comment as: Google Account Members (8)
Publish
Preview
Already a member? Sign in
Total Pageviews
Awesome Inc. template. Powered by Blogger.
http://iitestudent.blogspot.in/2012/03/variousaddressingmodesof80868088.html 3/3