Computer Science, asked by umairhameed236, 8 months ago

write an 8051 assembly program (not in c language) to count all non zero bytes in the integer array of ten numbers stored in rom of 89c52 microcontroller. .Store the count value in r7,and store the index value of each nonzero byte on to stack.furthermore store the odd numbers found in array on scratch pad

Answers

Answered by Anonymous
0

Answer:

Convert the decimal number in Accumulator to its binary equivalent

Rotate the digits of the binary number right without carry

Apply a loop till count is not zero to change the values of D register and count

Copy the value of D register to accumulator and store the result

Program –

Similar questions