Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
06/17/02 05:41
Read: times


 
#24536 - Bit comparing
Hi All,

I have to compare two registers bit by bit.

And if any two bits are not equal then I have to set a corresponding bit in a third register.

For example:

Compare bit <Reg_A.4> with <Reg_B.4> if these two bits are not equal then set bit <Reg_C.4>.

It is required to compare all 8 bits one by one.

I have developed a method but not a good one.

Any good method like working in a loop with minimum instructions, please.

Regards

Simon



List of 11 messages in thread
TopicAuthorDate
Bit comparing            01/01/70 00:00      
RE: Bit comparing (correction)            01/01/70 00:00      
RE: Bit comparing            01/01/70 00:00      
RE: Bit comparing (correction)            01/01/70 00:00      
RE: Bit comparing (correction)            01/01/70 00:00      
RE: Bit comparing (correction)            01/01/70 00:00      
RE: Bit comparing            01/01/70 00:00      
RE: Bit comparing            01/01/70 00:00      
RE: Bit comparing (correction),error            01/01/70 00:00      
RE: Bit comparing ,error Pranav            01/01/70 00:00      
RE: Bit comparing : Peter            01/01/70 00:00      

Back to Subject List