> Hey, by the way... Speaking of little mistakes that take a long > time to find, what does W contain at the "done" label? > > list p=16c54 > #include p16c5x.inc > > list r = hex > > org 0 > > movlw 0 ;3 * 0 = 0x00 > addlw 3 ;3 * 1 = 0x03 > addlw 6 ;3 * 2 = 0x06 > addlw 9 ;3 * 3 = 0x09 > addlw C ;3 * 4 = 0x0C "C" is the definition for the Carry bit. It's value is 0, right? Numbers can not begin with a letter, even if the default radix is hex? > addlw F ;3 * 5 = 0x0F Similarly, F is the defintion for the "file" destination (addw reg,f) BillW -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads