piclist 2001\04\01\143611a >
Thread: How to do 24bit Signed Addition/Substration Fixed point.
face BY : 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

<03A1C3D564C54F41AE049A641BAE0D8A070E5A@infoexch01.infoserver.no> quoted-printable

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) How to do 24bit Signed Addition/Substration Fixed point.

month overview.

new search...