piclist 2003\03\02\163047a >
Thread: coding challenge: await
picon face BY : Banjo Spam email (remove spam text)


My copy of PIC16F87xA manual (DS39582A, page 158)
indicates that C (and DC for that matter) are not
affected by the INCF instruction. Note that because
INCF only increments by one, Z can be tested as if it
were the carry bit, for the INCF.

Only ADD and SUB commands (ADDWF, SUBWF, ADDLW, SUBLW)
affect C/DC. Note also that these commands do not USE
the value of C/DC for the arithmetic calculation. This
requires using bit-test functions when adding
multiple-byte values, as in the numerous math routines
available on piclist.com. On the other hand, it does
not require clearing/setting the C/DC values prior to
these functions.

I would expect that other PICMicro processors are the
similar, but I would check the Instruction Set Summary
to be sure.

Happy pic'n!

--- Tony_K|bek <tony.kubekEraseMEspamEraseMEFLINTAB.COM> wrote:
{Quote hidden}

Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.

http://www.piclist.com hint: To leave the PICList

In reply to: <8A2A45D3D18D574484CFD980CDB73A31024BCA@flmail.dns.flintab.se>
See also: www.piclist.com/techref/microchip/devices.htm?key=pic
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) coding challenge: await

month overview.

new search...