Hi Bo, On Sun, Mar 28, 2010 at 12:46 AM, Bo Dirigo wrote: > My question is "Do you need to specify the "0" value if one knows they > want the resultant value to be stored in the W register?" Yes, you do. Take a look at the DataSheet. It clearly says that the default d is 1. However, it is always better to specify the target to avoid mistakes and to add readability to the code. Also if you use the standard include files provided by Microchip (or the gputils tool chain), then you can use the W and F instead or their numbers. If you do that you also advance your code as you can understand it more easy. So your code would be: If d=3D0, the results are stored in the W register - ADDWF FSR, W If d=3D1, the results are stored in the f register - ADDWF FSR, F ...if that makes any sense... Tamas > =A0Obviously, if > one wants the result to be stored in the f register, they must specify > the "1" value. =A0I'm probably all wet here, but was thinking perhaps the > assembler would automatically default to the "0" value if nothing > specified. =A0Before you shoot me, I am in agreement it would be better to > specify either a "0" or "1" depending on what it is one wants done. =A0I'm > just curious. > > Bo Dirigo > > > -- > http://www.piclist.com PIC/SX FAQ & list archive > View/change your membership options at > http://mailman.mit.edu/mailman/listinfo/piclist > -- = int main() { char *a,*s,*q; printf(s=3D"int main() { char *a,*s,*q; printf(s=3D%s%s%s, q=3D%s%s%s%s,s,q,q,a=3D%s%s%s%s,q,q,q,a,a,q); }", q=3D"\"",s,q,q,a=3D"\\",q,q,q,a,a,q); } -- = http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist