'Addition (2 32-bit numbers) and Division'
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
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.
Saurabh Sinha wrote:
> Then, I need to divide (the 32-bit number), by 2^24.
Copy the most significant byte into the least-significant byte of your
new number, any other more-significant bytes being already cleared
(i.e., you have as you say, an 8-bit only result).
Check out MICROCHIP Application Note AN617 at http://www.microchip.com
It will answer your questions on mul/div, multi byte addition and
On Sunday, March 19, 2000 Saurabh Sinha wrote:
More... (looser matching)
- Last day of these posts
- In 2000
, 2001 only
- New search...