piclist 2003\03\02\114003a >
Thread: Some Basic Questions
picon face BY : Biswanath Dutta email (remove spam text)

I'm  essentially a beginner using PIC16F877 and trying to develop some code.
I have discovered the following and would someone please clear the
confusion --

1) incf, rlf, rrf type instructions do not seem to work properly on W. Is it
so ? Why ? Microchip Datasheet doesn't mention anything regarding this.

2) Why doesn't MPASM give error messages when the above instructions are
used on W

2) I entered the following code assembled and ran MPSIM
           incf  W,W
           incf   W,W
           incf   W,W

   While single stepping through , W is incremented on the first incf and
not on the subsequent two incf . WHY

Thanks in advance -- Biswanath Dutta

http://www.piclist.com hint: To leave the PICList
<OE44NmgHvnRQgukfMHT00002d73@hotmail.com> 7bit

See also: www.piclist.com/techref/microchip/languages.htm?key=basic
Reply You must be a member of the piclist mailing list (not only a www.piclist.com member) to post to the piclist. This form requires JavaScript and a browser/email client that can handle form mailto: posts.
Subject (change) Some Basic Questions

month overview.

new search...