Question: 5 ) Twelve 8 - bit numbers are available in successive memory locations starting at 4 0 H ( Array - 1 ) . Develop

5) Twelve 8-bit numbers are available in successive memory locations starting at 40H (Array-1). Develop an 8051 ALP to compare this memory block with another set of twelve 8-bit numbers available in successive memory locations starting at 50H (Array2). Compare the 8-bit number at 40H with the 8-bit number at 50H, number at 41H with the number at 51H and so on. If the two arrays are the same (all the numbers in array1 are the same as that in array-2), display 00H at port-0; If the two arrays are not the same, display FFH at port-0, display the count of unequal numbers at port-1 and equal numbers at port-2.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!