Adjust flag
The Adjust flag (also known as the Auxiliary flag) is a CPU flag in the FLAGS register of all x86-compatible CPUs. It is located at bit position 4. It indicates when an arithmetic carry or borrow has been generated out of the four least significant bits, or lower nibble. It is primarily used to support binary-coded decimal (BCD) arithmetic.
The Auxiliary flag is set (to 1) if there is a carry from the low nibble (lowest four bits) to the high nibble (upper four bits), or a borrow from the high nibble to the low nibble, in the low-order 8-bit portion of an addition or subtraction operation. Otherwise, if no such carry or borrow occurs, the flag is cleared (reset to 0).
See also
|
This article is issued from Wikipedia - version of the 8/21/2015. The text is available under the Creative Commons Attribution/Share Alike but additional terms may apply for the media files.