EvilGenius
Member
Hello
I have been doing a lot of searches and study of codes and can't seem to find what I am looking for.
I have two Ports (A & B). I want to be able to shift left from Port B thru carry and into Port A until data reaches A3.
Once I shift left one more time, I like the data to loop back to B0 (the begining).
I have seen setting up leftbit and rightbit and I know how to shift thru carry. If I shift left once again will the last bit (MSB) automatically fall into B0 (LSB)?
Leftbit equ 3
Rightbit equ 0
clrf C
set bits for port A and B
rlf ....
I have been doing a lot of searches and study of codes and can't seem to find what I am looking for.
I have two Ports (A & B). I want to be able to shift left from Port B thru carry and into Port A until data reaches A3.
Once I shift left one more time, I like the data to loop back to B0 (the begining).
I have seen setting up leftbit and rightbit and I know how to shift thru carry. If I shift left once again will the last bit (MSB) automatically fall into B0 (LSB)?
Leftbit equ 3
Rightbit equ 0
clrf C
set bits for port A and B
rlf ....