Data Transfer Copy Operation in 8085
-
Upload
mikesh-khanal -
Category
Documents
-
view
348 -
download
1
description
Transcript of Data Transfer Copy Operation in 8085
![Page 1: Data Transfer Copy Operation in 8085](https://reader033.fdocuments.net/reader033/viewer/2022050808/552597735503468e6e8b48ce/html5/thumbnails/1.jpg)
8085 Instruction Set
*
![Page 2: Data Transfer Copy Operation in 8085](https://reader033.fdocuments.net/reader033/viewer/2022050808/552597735503468e6e8b48ce/html5/thumbnails/2.jpg)
![Page 3: Data Transfer Copy Operation in 8085](https://reader033.fdocuments.net/reader033/viewer/2022050808/552597735503468e6e8b48ce/html5/thumbnails/3.jpg)
![Page 4: Data Transfer Copy Operation in 8085](https://reader033.fdocuments.net/reader033/viewer/2022050808/552597735503468e6e8b48ce/html5/thumbnails/4.jpg)
*
*Move Immediate
*It loads the 8-bit data(byte) into the register specified.
*This is the 2 byte instruction.
*Example: MVI A,82H
MVI B,37H
![Page 5: Data Transfer Copy Operation in 8085](https://reader033.fdocuments.net/reader033/viewer/2022050808/552597735503468e6e8b48ce/html5/thumbnails/5.jpg)
*
*Load register pair immediately.
*Similar to MVI instruction.
*It loads the data or address in register pairs or stack pointer
register.
*It is 3 byte instruction.
*Example: LXI H,2050H
![Page 6: Data Transfer Copy Operation in 8085](https://reader033.fdocuments.net/reader033/viewer/2022050808/552597735503468e6e8b48ce/html5/thumbnails/6.jpg)
Address Op-
code
Operand Hex
code
8000 LDA 2050H 3A,50,
20
8003 HLT 76
Address Op-
code
Operand Hex
code
8000 LXI B,2050H 01,50,
20
8003 LDAX B 0A
8004 HLT 76
*
![Page 7: Data Transfer Copy Operation in 8085](https://reader033.fdocuments.net/reader033/viewer/2022050808/552597735503468e6e8b48ce/html5/thumbnails/7.jpg)
LDA
16-bit data byte
3
Direct
memory location
specified by contents
of register pairs
Accumulator
LDAX
Rp (B/D register pair)
1
Indirect
memory location
specified by 16-bit
address
Accumulator
*
Op-Code
operand
Bytes
Addressing modes
Transfer from
Transfer to
![Page 8: Data Transfer Copy Operation in 8085](https://reader033.fdocuments.net/reader033/viewer/2022050808/552597735503468e6e8b48ce/html5/thumbnails/8.jpg)
1. Stands for Store Accumulator Direct
2. The contents of accumulator are
copied to a memory location
specified by the operand.
3. No flags are affected.
Example: STA 2050H
Op-code Operand Bytes
STAX 16-bit 3
![Page 9: Data Transfer Copy Operation in 8085](https://reader033.fdocuments.net/reader033/viewer/2022050808/552597735503468e6e8b48ce/html5/thumbnails/9.jpg)
1. Stands for Store Accumulator Direct
2. The contents of accumulator are copied to a memory location specified by the contents of the operand (register pair).
3. No flags are affected.
Example: STAX B
This instruction is similar to move A, m except it uses the content BC or DE as memory pointers.
Op-code Operand Bytes
STAX Rp (B/D register
pair)
3
![Page 10: Data Transfer Copy Operation in 8085](https://reader033.fdocuments.net/reader033/viewer/2022050808/552597735503468e6e8b48ce/html5/thumbnails/10.jpg)
* Ranjan Yadav
* Ashish Rauniyar
* Chandan Prasad Gupta
* Rabin Bhandari
* Mikesh Khanal
*