Assembly language programming

 Write an 8085 program to copy block of five numbers starting from location 2001H to location   starting from 3001H.


  • Flow Chart

  • Program

Line

Program

PC

Byte

0

-

0000

-

1

MVI B 05

0002

2

2

LXI H 2001

0005

3

3

LXI D 3001

0008

3

4

L1:MOV A M

0009

1

5

STAX D

000A

1

6

INX H

000B

1

7

INX D

000C

1

8

DCR B

000D

1

9

JNZ L1

0008/0010

3

10

HLT

 

1


Post a Comment

0 Comments