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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
04/20/04 06:04
Read: times


 
#68864 - RE: Rotating 32 bytes on 89c51 through C
Responding to: ???'s previous message
Dear Dan Henry,

I have your code tested,
It is good and working,

Again, thank you very much
Kurnia Brahmana


Dan Henry wrote:
-------------------------------
I need to rotate bits from addr 20h to 2fh which is bit addressable locations through carry register.


Taking your requirements quite literally, "rotate from addr 20h to 2fh", means rotate as opposed to shift bits up (i.e., left) and the bit at bit address 7FH rotates around to bit address 00H.
MOV R0,#020H
MOV B,#16
MOV C,07FH
LOOP: MOV A,@R0
RLC A
MOV @R0,A
INC R0
DJNZ B,LOOP
NOTE: This code has not assembled or tested.



List of 9 messages in thread
TopicAuthorDate
Rotating 32 bytes on 89c51 through C            01/01/70 00:00      
   RE: Rotating 32 bytes on 89c51 through C            01/01/70 00:00      
      RE: Rotating 32 bytes on 89c51 through C            01/01/70 00:00      
      RE: Rotating 32 bytes on 89c51 through C            01/01/70 00:00      
   RE: Rotating 32 bytes on 89c51 through C            01/01/70 00:00      
      RE: Rotating 32 bytes on 89c51 through C            01/01/70 00:00      
         RE: Rotating 32 bytes on 89c51 through C            01/01/70 00:00      
            RE: Rotating 32 bytes on 89c51 through C            01/01/70 00:00      
   RE: Rotating 32 bytes on 89c51 through C            01/01/70 00:00      

Back to Subject List