coding challenge: await
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
I would expect that other PICMicro processors are the
similar, but I would check the Instruction Set Summary
to be sure.
--- Tony_K|bek <FLINTAB.COM> wrote: tony.kubek
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
You must be a member of the
piclist mailing list
(not only a www.piclist.com member) to post to the