birdman0_o
Active Member
Hey guys,
I have a question regarding the asm instructions RRF (rotate right through carry) and RLF (rotate left through carry).
Whenever I use these instructions what happens is that the original register gets modified if I use this instruction multiple times.
For example, when I use it with my 74HC595 serial - parallel shift register and I shift it 8 times, it isn't restored to what it originally was. I am showing a, lets say for the sake of argument 3 at first, it displays, but when the loop gets to showing the 3 again, its completely changed.
I've always used the 16f628a, perhaps it is only a problem with this uC.
Anybody have any similar experience?
I have a question regarding the asm instructions RRF (rotate right through carry) and RLF (rotate left through carry).
Whenever I use these instructions what happens is that the original register gets modified if I use this instruction multiple times.
For example, when I use it with my 74HC595 serial - parallel shift register and I shift it 8 times, it isn't restored to what it originally was. I am showing a, lets say for the sake of argument 3 at first, it displays, but when the loop gets to showing the 3 again, its completely changed.
I've always used the 16f628a, perhaps it is only a problem with this uC.
Anybody have any similar experience?