Go Down

Topic: Addition overflow (Read 2081 times) previous topic - next topic

leonelpepe

I will try to access the carry bit in the status register. If i make a subtraction, it take so time, is a slowly solution. I don't want to avoid a overflow, I just want to know if a overfow have been curred.

robtillaart

Quote
I will try to access the carry bit in the status register. If i make a subtraction, it take so time, is a slowly solution. I don't want to avoid a overflow, I just want to know if a overfow have been curred.


What is the performance you need?
What are you trying to accomplish? goal of your project?
Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)

leonelpepe

It is for a PLC (industrial controls). The performance it's not critical in this think, but the project is BIG and I prefer a cleaner code.

The name of the project is OpenMolo

The site of the project (in Spanish only) is:

http://libre.backupnet.com.ar/I1159-Open+Molo

And the documentation (in Spanish too) is:

http://repositorio.libre.backupnet.com.ar/OpenMolo/OpenMoloDOC/html/index.html

SVN: svn://svn.backupnet.com.ar/OpenMolo

Go Up