Number of Ones and Zeros in A Given Data
Number of Ones and Zeros in A Given Data
9 1 C
1 0 0 1 0 0 0 1 0
8 times
RCR − Used to rotate bits of byte/word towards the right, i.e. JC − Used to jump if carry flag CF = 1
9 1 C
1 0 0 1 0 0 0 1 0
1 time
RCR − Used to rotate bits of byte/word towards the right, i.e. JC − Used to jump if carry flag CF = 1
CHECK CF
CMP CX BX CX > BX (CF=0)
CX < BX (CF=0)