Dag Bakken wrote: > This is a small reference on how to do an > "instruction-by-instruction" conversion : > .... > > SUBLW k W = W - k; This one should be "W = k - W;". > IORWF f,d W = f ^ W; > ..or.. f = f ^ W; These should be "W = f | W;" and "f = f | W;". > RLF f,d f << 1; ..or.. > f = f << 1; ..or.. > rl(f); ..or.. > f = rl(f); > RRF f,d f >> 1; ..or.. > f = f >> 1; ..or.. > rr(f); ..or.. > f = rr(f); Did you mean for the first line of each of the above to read "f <<= 1;" and "f >>= 1;"? -Andy === Andrew Warren - fastfwd@ix.netcom.com === Fast Forward Engineering - Vista, California === === Custodian of the PICLIST Fund -- For more info, see: === http://www.geocities.com/SiliconValley/2499/fund.html