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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
03/01/08 14:01
Read: times


 
#151731 - XOR
Responding to: ???'s previous message
I find the xor instruction very elligant for branching to equal or not equal.never programmed in 8052 assembly but here is a code in PIC assembly:<pre>
movlw 3
xorwf TMR0, w ; was it 1 mSec pulse
BTFSC STATUS, Z
BSF keyReg, 4 ; yes then set bit4

List of 8 messages in thread
TopicAuthorDate
CJNE Question            01/01/70 00:00      
   CJNE method            01/01/70 00:00      
      CJNE method            01/01/70 00:00      
         Try this            01/01/70 00:00      
   Program counter            01/01/70 00:00      
   CJNE Alternatives            01/01/70 00:00      
      XOR            01/01/70 00:00      
   example            01/01/70 00:00      

Back to Subject List