On Fri, 14 Dec 2001, Ashley Roll wrote: > Hi Scott, > > You'd have to know that the C flag wasn't going to be set by the ADDWF.. > Otherwise you'd end up with (hourhand*5)+1 > > Assuming that the hourhand is going to be between 0 and 11 or 1 and 12, the > ADDWF will clear the carry for you and all will be ok.. True, butt, that same problem exists with the rlf solutions that were also presented. If it's an issue, then either 1) clear the carry before the rlf or 2) don't do rlf at all. Either case takes 5 instructions. -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads