> -----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) Regards Mike ======================================================================= This e-mail is intended for the person it is addressed to only. The information contained in it may be confidential and/or protected by law. If you are not the intended recipient of this message, you must not make any use of this information, or copy or show it to any person. Please contact us immediately to tell us that you have received this e-mail, and return the original to us. Any use, forwarding, printing or copying of this message is strictly prohibited. No part of this message can be considered a request for goods or services. ======================================================================= Any questions about Bookham's E-Mail service should be directed to postmaster@bookham.com. -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads