[PRACTICAL] IMPLEMENT A PROGRAM TO COUNT NO OF ZERO VALUE IN GIVEN BLOCK OF DATA
Are you looking for a step-by-step guide to Implement a program to count no of zero value in given block of data? here are the steps to implement a program to count no of zero value in given block of data.
This Program find how many hexadecimal zero value in list of memory location. Here memory location stared from C050h to C05Fh and find zero value between two location. Count number of zero store in C register.
LXI H,C050H MVI B,0FH MVI C,00H NEXT :MOV A,M ANI FFH JZ COUNT BACK :INX H DCR B JNZ NEXT HLT COUNT: INR C JMP BACK HLT
If we enter above value in list of memory location then total number of zero is 7 so value of C register is 7.
For more practical related to 885 Programming please visit the 8085 Programming link
We are sorry that this post was not useful for you!
Let us improve this post!
Tell us how we can improve this post?