piclist 2003\03\02\123101a >
Thread: Some Basic Questions
www.piclist.com/techref/microchip/languages.htm?key=basic
picon face BY : Banjo Spam email (remove spam text)



Ian and Biswanath,

Ian's explanation is not *quite* correct.

INCF W,W will NOT increment the value *pointed to* by
W. Rather, this is equivalent to
INCF 0, W because 'W' in the assembly code is
translated to the number 0. Regardless of the value in
W (i.e. it does *not* matter that you cleared W prior
to this instruction), this instruction will retrieve
the value in register 0, and place the incremented
value into W.

The effect in your example, Biswanath, is the same as
Ian has indicated.
You are incrementing the value found in location 0 and
placing the result into W.

And Ian's comment "Get used to not performing these
operations on W." I couldn't agree more.

Good luck on your PIC-N-PATH!

--- Ian McLean <ianmcleanspamBeGonespamOPTUSHOME.COM.AU> wrote:
{Quote hidden}

> {Original Message removed}
<20030302172932.28272.qmail@web80408.mail.yahoo.com>

In reply to: <000701c2e0df$2a34d6f0$0c00a8c0@deepthought>
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...