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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
07/11/03 18:11
Read: times


 
#50505 - RE: 3 bit binary counter
Responding to: ???'s previous message
hi,

here is some alternative code called abhisheks method ;). here i assumed that contiguous bits are used as counter bits in increasing order.

'const1' has a '1' at LSB position. rest of the bits are '0's. 'const2' has '1's at the all counter bit positions and rest of the bits are zeros.

mov a,p0
add a,#const1
xrl a,p0
anl a,#const2
xrl p0,a

any comments. or flaws.

abhishek


List of 8 messages in thread
TopicAuthorDate
3 bit binary counter            01/01/70 00:00      
   RE: 3 bit binary counter            01/01/70 00:00      
      RE: 3 bit binary counter            01/01/70 00:00      
   RE: 3 bit binary counter            01/01/70 00:00      
      RE: 3 bit binary counter            01/01/70 00:00      
      RE: 3 bit binary counter            01/01/70 00:00      
   RE: what is Aspire?            01/01/70 00:00      
      RE: what is Aspire?            01/01/70 00:00      

Back to Subject List