I do wish people would read the data sheets come on !
"clrw"  it really is that simple
----- Original Message -----
From: Saurabh Sinha
To: PICLIST@MITVMA.MIT.EDU
Sent: Monday, March 06, 2000 6:51 PM
Subject: Re: Clearing the W Register, PIC16F84

Werner,
 
How about using clrf w or movlw 00x0 ?
 
Saurabh
UP
-----Original Message-----
From: pic microcontroller discussion list [mailto:PICLIST@MITVMA.MIT.EDU]On Behalf Of Werner Soekoe
Sent: Monday, March 06, 2000 3:27 PM
To: PICLIST@MITVMA.MIT.EDU
Subject: Clearing the W Register, PIC16F84

Hi
 
I wish to clear the W register, and I currently use the following command:
 
 andlw H'0'
 
Is there a more simplified way of doing this? Is there an instruction I can use to make it more obvious that I'm clearing the W register?
 
Thanks!
 
Werner Soekoe
wsoekoe@global.co.za