At 09:56 PM 11/8/01 -0300, you wrote: >one question... > >INCF 0xff > is supposed to set the carry flag ? It seems it doesn't....But why ? 1) INCF does NOT affect the carry flag, only the zero flag. In this case, it can serve the same function. Look at the instructions set summary in the data sheet under "Status Affected". BTW, this is quite deliberate on the part of Microchip's (or was it General Instrument's?) designers, it allows a loop counter to be used without it affecting the carry flag, which is useful for multiple-byte math and shifting. 2) INCF 0xff means increment register at address 0xff, so the value of location 0xff is what determines whether the zero flag is set or not. Best regards, Spehro Pefhany --"it's the network..." "The Journey is the reward" speff@interlog.com Info for manufacturers: http://www.trexon.com Embedded software/hardware/analog Info for designers: http://www.speff.com /.-.\ (( * )) \\ // Please help if you can: \\\ http://dailynews.yahoo.com/fc/US/Emergency_Information/ //\\\ /// \\\ \/ \/ -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads