Can I read Understanding Overflow Flag in 8051 on EtoBox?
Understanding Overflow Flag in 8051 by malhiavtarsingh is a document available to read on EtoBox.
What is Understanding Overflow Flag in 8051 about?
The overflow flag is set after an addition or subtraction operation if the result is outside the signed 8-bit range of -128 to 127. It alerts the program that the result is out of the allowed range for a signed 8-bit number. For example, 115 + 23 = 138, but 138 cannot be represented as a signed 8-bit number so the overflow flag would be set.
- Author
- malhiavtarsingh
- Language
- EN