Alvaro Deibe Diaz wrote: > Well, I wrote this code just yesterday, so it isn't tested yet, but > I think it must run fine. Any comments? > .... > movf b0,W ; ? d >= a ? > subwf d0,W > movf b1,W > btfss STATUS,C > incf b1,W > subwf d1,W > btfss STATUS,C > goto sigue ; No. Salta a sigue > ; > movf b0,W ; Si. d <- d - b; > subwf d0,F > movf b1,W > btfss STATUS,C > incf b1,W > subwf d1,F Alvaro: In the portion of the code that I've quoted, you must change the INCF instructions to INCFSZ. En la porcion del programa que he cotizado, usted debe cambiar las instrucciones de INCF a INCFSZ. -Andy === Andrew Warren - fastfwd@ix.netcom.com === Fast Forward Engineering - Vista, California === http://www.geocities.com/SiliconValley/2499