This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

counter using two seven segments

org 0h start: mov p1,#00000000b mov r0,#9d binaryy: mov a,p1 inc a mov p1,a djnz r0,binaryy mov p1,#00000001b mov p2,#00000000b neww: mov r0,#9d second: mov a,p2 inc a mov p2,a djnz r0,second inc p1
; sjmp neww end

I want to make counter using two seven segments , i need here, that when p1 will be incremented in the third last line of the program, p2 should be zero simultaneously, how to do these two things together?

Parents Reply Children
No data