> 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 > addlw F ;3 * 5 = 0x0F > > done: goto done > > org 1FF > goto 0 > > end >> OK, I'll bite. It sure looks like 3 * 15, or 45. >> If there's some hidden >> trick here, I guess I'm missing it. Decimal 19. Ok, I "cheated". I ran it in the simulator. F is equal to 1 and C is equal to 0. You must prefix them with "0x". __________________________________________________ Do you Yahoo!? Yahoo! Tax Center - File online, calculators, forms, and more http://tax.yahoo.com -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads