ADDRESSING MODES OF 8085 Mr. Gursharan Singh Tatla [email protected] 1Gursharan Singh Tatla.
ADDRESSING MODES OF 8085
-
Upload
haley-cantrell -
Category
Documents
-
view
333 -
download
36
description
Transcript of ADDRESSING MODES OF 8085
![Page 1: ADDRESSING MODES OF 8085](https://reader035.fdocuments.net/reader035/viewer/2022081415/56812b1d550346895d8f11be/html5/thumbnails/1.jpg)
ADDRESSING MODES ADDRESSING MODES OF 8085OF 8085
Mr. Gursharan Singh [email protected]
1Gursharan Singh Tatla
![Page 2: ADDRESSING MODES OF 8085](https://reader035.fdocuments.net/reader035/viewer/2022081415/56812b1d550346895d8f11be/html5/thumbnails/2.jpg)
Addressing Modes of Addressing Modes of 80858085
To perform any operation, we have to give the corresponding instructions to the microprocessor.
In each instruction, programmer has to specify 3 things:◦Operation to be performed.
◦Address of source of data.
◦Address of destination of result.2Gursharan Singh Tatla
![Page 3: ADDRESSING MODES OF 8085](https://reader035.fdocuments.net/reader035/viewer/2022081415/56812b1d550346895d8f11be/html5/thumbnails/3.jpg)
Addressing Modes of Addressing Modes of 80858085
The method by which the address of source of data or the address of destination of result is given in the instruction is called Addressing Modes.
The term addressing mode refers to the way in which the operand of the instruction is specified.
3Gursharan Singh Tatla
![Page 4: ADDRESSING MODES OF 8085](https://reader035.fdocuments.net/reader035/viewer/2022081415/56812b1d550346895d8f11be/html5/thumbnails/4.jpg)
Types of Addressing Types of Addressing ModesModes
Intel 8085 uses the following addressing modes:1. Direct Addressing Mode
2. Register Addressing Mode
3. Register Indirect Addressing Mode
4. Immediate Addressing Mode
5. Implicit Addressing Mode
4Gursharan Singh Tatla
![Page 5: ADDRESSING MODES OF 8085](https://reader035.fdocuments.net/reader035/viewer/2022081415/56812b1d550346895d8f11be/html5/thumbnails/5.jpg)
Direct Addressing Direct Addressing ModeMode
In this mode, the address of the operand is given in the instruction itself.
LDA is the operation.2500 H is the address of source.Accumulator is the destination.
5Gursharan Singh Tatla
LDA 2500 H
Load the contents of memory location 2500 H in accumulator.
![Page 6: ADDRESSING MODES OF 8085](https://reader035.fdocuments.net/reader035/viewer/2022081415/56812b1d550346895d8f11be/html5/thumbnails/6.jpg)
Register Addressing Register Addressing ModeMode
In this mode, the operand is in general purpose register.
MOV is the operation.B is the source of data.A is the destination.
6Gursharan Singh Tatla
MOV A, B Move the contents of register B to A.
![Page 7: ADDRESSING MODES OF 8085](https://reader035.fdocuments.net/reader035/viewer/2022081415/56812b1d550346895d8f11be/html5/thumbnails/7.jpg)
Register Indirect Register Indirect Addressing ModeAddressing Mode
In this mode, the address of operand is specified by a register pair.
MOV is the operation.M is the memory location specified
by H-L register pair.A is the destination.
7Gursharan Singh Tatla
MOV A, M
Move data from memory location specified by H-L pair to accumulator.
![Page 8: ADDRESSING MODES OF 8085](https://reader035.fdocuments.net/reader035/viewer/2022081415/56812b1d550346895d8f11be/html5/thumbnails/8.jpg)
Immediate Addressing Immediate Addressing ModeMode
In this mode, the operand is specified within the instruction itself.
MVI is the operation.05 H is the immediate data
(source).A is the destination.
8Gursharan Singh Tatla
MVI A, 05 H
Move 05 H in accumulator.
![Page 9: ADDRESSING MODES OF 8085](https://reader035.fdocuments.net/reader035/viewer/2022081415/56812b1d550346895d8f11be/html5/thumbnails/9.jpg)
Implicit Addressing Implicit Addressing ModeMode
If address of source of data as well as address of destination of result is fixed, then there is no need to give any operand along with the instruction.
CMA is the operation.A is the source.A is the destination.
9Gursharan Singh Tatla
CMA Complement accumulator.
![Page 10: ADDRESSING MODES OF 8085](https://reader035.fdocuments.net/reader035/viewer/2022081415/56812b1d550346895d8f11be/html5/thumbnails/10.jpg)
10Gursharan Singh Tatla