On Wed, 2 Apr 2003, Michael Rigby-Jones wrote: > > -----Original Message----- > > From: Andrew Warren [SMTP:aiw@CYPRESS.COM] > > Sent: Wednesday, April 02, 2003 12:46 AM > > To: PICLIST@MITVMA.MIT.EDU > > Subject: Re: [PIC]: Configuration bits > > > > 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 > > > My calculator said 2Dh, but after a cup of coffee my brain kicked in and > told me that addlw dosen't exist on the 12bit cores :o) That's weird, my slide rule gives me 0x13 (for a 14-bit core). Scott -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads