Check out MICROCHIP Application Note AN617 at http://www.microchip.com
It will answer your questions on mul/div, multi byte addition and
subtraction.
Nikolai
On Sunday, March 19, 2000 Saurabh Sinha wrote:
{Quote hidden}> Hi,
> I need some help with adding two 32-bit numbers.
> What I have in mind: 8 bytes will be needed, 4 bytes for each of the
> numbers.
> My problem: How, do I use Status <C> , to automatically increment the next
> byte block, if there's a 1 carry?
> Then, I need to divide (the 32-bit number), by 2^24. To do this, type of a
> division, I will have to shift the numbers 24 times to the right, right? The
> result will be 8-bits. I will need about 8-bytes in doing this. My problem,
> once again, how/can I take advantage of the status flags (if they are
> needed?).[Sorry, I am quite new to programming].
> Thanks in advance for your assistance.
> Regards,
> Saurabh