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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
07/01/04 18:56
Read: times


 
#73486 - RE: 4th solution :)
Responding to: ???'s previous message
There is a byte XOR:
XRL A,Rn 
XRL A,direct
XRL A,@Ri
XRL A,#data
XRL direct,A
XRL direct,#data

There's nothing like:
XRL C,bit
JNE C,bit,addr16
XRL bit,bit

or anything alike though.

The solution is either to execute things like
RLC A
ANL A,#1 
XCH A,direct
ANL A,#1
XRL A,direct

or to perform it as (~a AND b) OR (a AND ~b)
JB bit1,L2
JB bit2,TRUE
JMP FALSE
L2:
JB bit2,FALSE
TRUE:


List of 25 messages in thread
TopicAuthorDate
Problem in Reading Encoder            01/01/70 00:00      
   RE: Problem in Reading Encoder            01/01/70 00:00      
   RE: Problem in Reading Encoder            01/01/70 00:00      
   RE: Problem in Reading Encoder            01/01/70 00:00      
   RE: Problem in Reading Encoder            01/01/70 00:00      
      RE: Problem in Reading Encoder            01/01/70 00:00      
         RE: Problem in Reading Encoder            01/01/70 00:00      
            RE: Problem in Reading Encoder            01/01/70 00:00      
               RE: Problem in Reading Encoder            01/01/70 00:00      
         RE: Problem in Reading Encoder            01/01/70 00:00      
            RE: Problem in Reading Encoder            01/01/70 00:00      
               RE: Problem in Reading Encoder            01/01/70 00:00      
                  RE: Problem in Reading Encoder            01/01/70 00:00      
         RE: Problem in Reading Encoder            01/01/70 00:00      
            RE: Problem in Reading Encoder            01/01/70 00:00      
               RE: Problem in Reading Encoder            01/01/70 00:00      
                  RE: Problem in Reading Encoder            01/01/70 00:00      
      4th solution :)            01/01/70 00:00      
         RE: 4th solution :)            01/01/70 00:00      
            RE: 4th solution :)            01/01/70 00:00      
               RE: 4th solution :)            01/01/70 00:00      
                  RE: 4th solution :)            01/01/70 00:00      
                  RE: 4th solution :)            01/01/70 00:00      
                     RE: 4th solution :)            01/01/70 00:00      
   RE: Problem in Reading Encoder            01/01/70 00:00      

Back to Subject List