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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
02/12/03 15:41
Read: times


 
#38884 - RE: UPS!
Responding to: ???'s previous message
Stanley,

You can't move one bit to another, you have to use an intermediate variable, which is what Mariusz was showing you. He used the carry flag in his example.

You can do Byte-wise operations to move 8 bits at a time, But not single bit to single bit.

If you just want to move certain bits you can mask then off an OR them together :-


mov a,p0 ; get p0 value
anl a,0x0f ; mask of lower 4 bits
orl p1,a ; or the bits into p1


It might help us to help you more, if you tell us what you are trying to do in your program.


Chris.

List of 13 messages in thread
TopicAuthorDate
Bit addressable AGAIN            01/01/70 00:00      
   RE: Bit addressable AGAIN            01/01/70 00:00      
   RE: Bit addressable AGAIN            01/01/70 00:00      
      RE: Bit addressable AGAIN            01/01/70 00:00      
   RE: Bit addressable AGAIN            01/01/70 00:00      
      UPS!            01/01/70 00:00      
         RE: UPS!            01/01/70 00:00      
            RE: UPS!            01/01/70 00:00      
      RE: Bit addressable AGAIN            01/01/70 00:00      
         RE: Bit addressable AGAIN            01/01/70 00:00      
   RE: Bit addressable AGAIN            01/01/70 00:00      
      RE: Bit addressable AGAIN            01/01/70 00:00      
         RE: Bit addressable AGAIN            01/01/70 00:00      

Back to Subject List