Searching \ for 'problems with bcf operations on W register.' in subject line. ()
Make payments with PayPal - it's fast, free and secure! Help us get a faster server
FAQ page: www.piclist.com/techref/index.htm?key=problems+with+bcf
Search entire site for: 'problems with bcf operations on W register.'.

Truncated match.
PICList Thread
'problems with bcf operations on W register.'
2000\03\09@184240 by robert hodkinson

flavicon
face
A really odd problem here.

why does the following line of code not work?

bcf W, 0x02

my understanding is that W is classed as a file register, or is it?

robert.
--
Robert Hodkinson, SF nut and a Render-head.
http://www.geocities.com/SoHo/Coffeehouse/5939
reply email is spam_OUTbag.itTakeThisOuTspamcableol.co.uk

2000\03\09@185952 by Tony Nixon

flavicon
picon face
robert hodkinson wrote:
>
> A really odd problem here.
>
> why does the following line of code not work?
>
> bcf W, 0x02
>
> my understanding is that W is classed as a file register, or is it?
>
> robert.
> --
> Robert Hodkinson, SF nut and a Render-head.
> http://www.geocities.com/SoHo/Coffeehouse/5939
> reply email is .....bag.itKILLspamspam@spam@cableol.co.uk

You can't use that instruction of the W register. It is not a RAM
location.
You will probably need a mask value then AND it with W.

--
Best regards

Tony

http://www.picnpoke.com
salesspamKILLspampicnpoke.com

2000\03\09@193042 by Jim Robertson

flavicon
face
At 11:31 PM 3/9/00 +0000, you wrote:
>A really odd problem here.
>
>why does the following line of code not work?
>
>bcf W, 0x02
>
>my understanding is that W is classed as a file register, or is it?
>
>robert.

It is for the 17Cxx family (w is named wreg in this case) and probably for
the
18cxx family but not for any of the 16C or derivative family parts (12C, 14C)

For the 17Cxx family you could use:

bcf WREG,0x02

With the 16Cxx parts you could do the same with:

andlw 0xfb

and for BSF W,0x02

iorlw 0x02


-Jim


--
>Robert Hodkinson, SF nut and a Render-head.
>http://www.geocities.com/SoHo/Coffeehouse/5939
>reply email is .....bag.itKILLspamspam.....cableol.co.uk
>
Regards,

Jim Robertson
NEWFOUND ELECTRONICS
________________________________________
Email: EraseMEnewfoundspam_OUTspamTakeThisOuTpipeline.com.au
http://www.new-elect.com
MPLAB compatible PIC programmers.
________________________________________

2000\03\09@200135 by Harold M Hallikainen

picon face
On Fri, 10 Mar 2000 10:46:07 +1100 Tony Nixon
<Tony.Nixonspamspam_OUTENG.MONASH.EDU.AU> writes:
{Quote hidden}

       Though 17c and 18c chips DO map w into file register space. Call it
wreg, though, not w (which is 0). 16c series processors do not have w in
the file register map.


Harold


FCC Rules Online at http://hallikainen.com/FccRules
Lighting control for theatre and television at http://www.dovesystems.com

________________________________________________________________
YOU'RE PAYING TOO MUCH FOR THE INTERNET!
Juno now offers FREE Internet Access!
Try it today - there's no risk!  For your FREE software, visit:
dl.http://www.juno.com/get/tagj.

2000\03\10@110110 by jamesnewton

face picon face
On the PICs, W is not a file register and cannot be accesses as one.

On the Scenix processors
http://www.scenix.com
there is an option bit that puts W in place of the RTCC at address 1 when
set.

---
James Newton KILLspamjamesnewtonKILLspamspamgeocities.com 1-619-652-0593
http://techref.massmind.org NEW! FINALLY A REAL NAME!
Members can add private/public comments/pages ($0 TANSTAAFL web hosting)


{Original Message removed}

More... (looser matching)
- Last day of these posts
- In 2000 , 2001 only
- Today
- New search...