On Sat, 1 Jun 2002 15:18:35 -0400, you wrote: >Four instructions: > >MOVF lowbyte, W ..should be MOVF lowbyte,F - that way you don't overwrite W >BTFSC zeroflag >DECF highbyte, F >DECF lowbyte, F > >-Adam > >Thomas N wrote: > >>Hi all >> >>Is there an easy way to subtract 16-bit number by 1? How? >>Thanks! >>Thomas >> >>-- >>http://www.piclist.com hint: PICList Posts must start with ONE topic: >>[PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads >> >> >> >> >>. >> >> >> -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads