Pages: 1 [2]   Go Down
Author Topic: Addition overflow  (Read 1459 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 2
Posts: 31
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Global Moderator
Netherlands
Offline Offline
Shannon Member
*****
Karma: 212
Posts: 13531
In theory there is no difference between theory and practice, however in practice there are many...
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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?
Logged

Rob Tillaart

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

Offline Offline
Newbie
*
Karma: 2
Posts: 31
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

Pages: 1 [2]   Go Up
Jump to: