Congratulations! Wow! I knew you had something to say :) Nikolai Monday, March 20, 2000, 11:28:35 PM, you wrote: > Hi Scott and Nikolai and others ;-) Sorry I was a little bit busy... > I guess we guys always have some fun solving some challenges ;-) > Here is procedure I've done for myself recently to overcome the > same situation. > ; Input X = abcdefgh , Output X = hgfedcba > ; Written by Dmitry A. Kiryashov 2000 > ; 12 clocks/words > reverse8bit: > swapf X,W ;efghabcd > xorwf X,W ;efghabcd > ;abcdefgh > andlw 0x66 ;.fg..bc. > ;.bc..fg. > xorwf X,F ;afgdebch > ; > rrf X,W > rrf X,F ;hafgdebc > ; > andlw 0x55 ;.a.g.e.c > addwf X,F ;h.f.d.b. > ;a.g.e.c. > rrf X,F ;.h.f.d.b > ;.a.g.e.c > addwf X,F ;ahgfedcb > ; > rlf X,W > rlf X,F ;hgfedcba > ;it can be replaced > ;with rlf X,W > ;if necessary... > WBR Dmitry. > ----------