How to do 24bit Signed Addition/Substration Fixed point.
James Lee Williams email (remove spam text)
Can someone please tell be how I can do signed 24bit fixed point
addition and substration of the PIC micro controllers. Everything that
I have seen is for unsigned addition and substraction. At the moment,
for subtraction, I compliment the result if the carry is clear on the
last subtract of the highest byte. (Meaning it had to borrow.). This
seems to give me the correct result, but I don't know if it is the best
or most efficient way to do it for subtraction.
http://www.piclist.com hint: To leave the PICList
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