On Fri, 23 Apr 2004 13:23:07 +0200, Ake Hedman wrote: >was actually nice. I usually comes up with something like >(or have since 1979) > > movlw 0xc0 ; Set GIE > ; Clear PEIE > ; Set T0IE > ; Clear INTE > ; Clear GPIE > ; Clear T0IF > ; Clear INTF > ; Clear GPIF > > .... > >Mostly using a constant of course but the issue is the same. >And this is always hard when you change something. Probably will change >this from now on. Thanks! > You've actually supplied a very good example illustrating why one shouldn't take this approach. The comment says one thing (0xA0) but the code (0xC0) says another. It's a very easy mistake to make but potentially very difficult to see. Regards, Bob Ooooops! Yes thats typical. Good this time. :-) /Ake -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details. -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details.