Hello Everyone. Please view my code on attachment first. The program is to check all the elements of two arrays are equal or not using 8085 assembly language. If equal, then it must print 01 to memory location 2570. Otherwise 00.
I have issue with this code. When I execute this code I find that i m getting 00 on 2570, never mind if all the elements on both arrays are equal or not. Which means after CMP M. JZ loop2 is not working at all. Why zero flag is not set in this code even if both element of 2 array is same ? Can anybody explain what is wrong with my code ?
I have issue with this code. When I execute this code I find that i m getting 00 on 2570, never mind if all the elements on both arrays are equal or not. Which means after CMP M. JZ loop2 is not working at all. Why zero flag is not set in this code even if both element of 2 array is same ? Can anybody explain what is wrong with my code ?
Attachments
-
243.2 KB Views: 7