1. This forum section is a read-only archive which contains old newsgroup posts. If you wish to post a query, please do so in one of our main forum sections (here). This way you will get a faster, better response from the members on Motherboard Point.

MPASM: btfss W,0 not possible?

Discussion in 'Embedded' started by Mark A. Odell, May 13, 2004.

  1. I have come to the conclusion that the Wreg cannot be used with the bit
    test instructions btfsc and btfss with MPASM. Is this true or am I missing
    something. I realize that W is the accumulator and thus does not have an
    address so my conclusion makes sense to me but I just wanted a PIC assy.
    expert to confirm this.

    Thanks.
     
    Mark A. Odell, May 13, 2004
    #1
    1. Advertisements

  2. Correct for the PIC12/16 series.
    The PIC18 series does have WREG as a register, so you can do bit-ops on it.
     
    Mike Harrison, May 13, 2004
    #2
    1. Advertisements

  3. Thanks for the response. Since my last PIC project was on the 18F series I
    now know why I thought this instruction was possible. Since I'm now on a
    16F872 I'll move the Wreg into a "varable" before checking the bit.
     
    Mark A. Odell, May 13, 2004
    #3
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.