On Sun, 16 Jun 2002, Scott Dattalo wrote: >On Sat, 15 Jun 2002, Peter L. Peres wrote: > > > >> This is because the counter switches between base 3 and base 4 at runtime. >> The only thing is I need to fix is the state 11 which does not exist in >> base 3. Thus my code. Sorry about being unclear. >> >> This code is clearer I hope: >> >> movf File,w >> andlw 0x03 >> xorlw 0x03 >> movlw 0xFC >> btfsc STATUS,Z >> andwf File,f >> >> On the second look it is not that long ... thanks anyway. > >Then what about this: > > comf File,w > andlw 0x03 > movlw 0x03 > skpnz > xorwf File,f Okay! thanks, Peter -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads