'Check whether a number falls within 32/bit range in ADD operation is ARM
How can I check whether the NBC number falls within 32-bit range after an operation ADD RO,RO,R1, LSL#1
I have read that it can be tested with a C flag which determines whether there is an overflow in such operation but I am not entirely sure how to set the "if" condition, e.g. if there has been overflow I should remove the value from the register and write something else inside it.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
