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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
07/15/01 03:51
Read: times


 
#13219 - The Technique In Comparing Two Register
Since 8051 doesn't provide the instructions:
cjne rn, rn+1, relative
cjne acc, rn, relative

It make the job for comparing two register quite cumbersome.

Usually, I compare the content of two register by using subtraction technique. That is,acc = r0-r1, check
acc == 0, r0==r1
acc <0, r0<r1
acc >0, r0>r1

I was wondering whether you have any better techniques for doing this?
Do share it with me.

thanks

regards
yccheok

List of 8 messages in thread
TopicAuthorDate
The Technique In Comparing Two Register            01/01/70 00:00      
RE: The Technique In Comparing Two Register            01/01/70 00:00      
RE: The Technique In Comparing Two Register            01/01/70 00:00      
RE: The Technique In Comparing Two Register            01/01/70 00:00      
RE: The Technique In Comparing Two Register            01/01/70 00:00      
RE: The Technique In Comparing Two Register            01/01/70 00:00      
RE: The Technique In Comparing Two Register            01/01/70 00:00      
RE: Reply to bordyn cheevatanakonkul            01/01/70 00:00      

Back to Subject List