Ian Parish wrote: > I'm looking for a neat code snippet for word subtract for the 16F84. I've foun d some info for word add (on Dejanews) but I can't seem to extend this simply to subtract. > > for word add I've got:- > > MOVF Word1Low,W > ADDWF Word2Low,F > MOVF Word1High,W > BTFSC STATUS,C > INCFSZ Word1High,W > ADDWF Word2High,F > > ... which produces Word2 += Word1, with carry correctly set! > > Any ideas? > > Also, does anyone have the URL of a searchable acrhive for this list? Hi, There is a complete set of 16bit routines in Myke Predko's site and explaining this routine. Check http://www.myke.com Reggie