At 12:01 PM 1/27/02 -0500, you wrote: >I need to check a register for a value and set the value of another >register depending on the value of the first, what would be the best way >to do this in the 16F84 > >My first register is Reg1, if it is zero then Reg2 must be loaded with >0A in hex > >If Reg1 is One then Reg2 must be loaded with 03 in hex What programming language? If assembly, I think you should invest in a book such as PIC'n Techniques or the like that has explanations of assembly. Jeff -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads