A block of data is stored at memory location 4500H. The length of block is stored in memory location 44FF H. Write an ALP that searches for the first occurrence of data D9 H in given block. Store the address of first occurrence of given number in H-L Pair. If the number is not found then H-L-Pair should contain 0000 H.
Answers
Answered by
0
Answer:
In this program we will see how to exchange a block of bytes using 8085.
Problem Statement
Write 8085 Assembly language program to exchange a block of data, where block size is given.
Discussion
The data are stored at location 8010H to 8019H and 9010H to 9019H. The location 8000H is holding the number of bytes to exchange.
The logic is very simple,The HL and DE register pair is pointing the first and second data block respectively. By taking the data we are just swapping the values of each memory locations. Then repeating this process to swap two blocks completely.
Explanation:
please mark me on branlist
Similar questions