At 12:27 PM 19/01/99 +1100, you wrote: The rlf/rrf are a rotate through CARRY. That is, whatever is in the carry bit will be moved into the lsb (RLF0 or msb(RRF). also the bit that is rotated out of the register is loaded into the carry bit. good luck, Peter Grey Neosystems >I should know the answer to this as ive done it few times but. > >Im have trouble with the rotate commands on the PIC16C77. >When rotating a bit left for example it will add a bit in the lsb when >rotating left and in the HSB when rotating right, even thought manual >demonstrates that it doesnt. > >tis is whats happening, >clrf BITn >bsf BITn, 0 >(BITn=0000 0001) > >rlf BITn, f > >My mistake??? >somthing simple???. > > >(BITn= 0000 0011) >%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% >Anthony Buckwell E-Mail: a.buckwell@cat.csiro.au >Electronic Engineer >Exploration and Mining, QCAT >CSIRO Australia > >2643 Moggill Road, Pinjarra Hills QLD 4069 >PO Box 883 Kenmore QLD , 4069 Australia >PH: +61 7 3212 4769 Mobile 0419 783 109 >FAX:+61 7 3212 4455 >%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% > >