In article <19971223163252822.AAA2047@COD-CAP-2.WYOMING.COM>, Justin Crooks writes >How about: > movf rmax,W > xorwf r1,F > skpz > .set flag... > xorwf r1,F > >Xor a register twice with same W and, voila, the original data is back. > > I don't see any reason to xor though... > Why not just: > > movf rmax,w > subwf r1,W > skpnz > > ??? Errr, cos i didn't think of doing it that way. BTW, is there any difference in code efficiency by doing it by subtraction rather than xor? -- Philip Martin ---------------------------------------------------------------- Royal Quays If at first you don't succeed, try again. Then quit: North Shields. no use being a damn fool about it ! W.C. Fields email philip@philmart.demon.co.uk