World Library  
Flag as Inappropriate
Email this Article

Adjust flag

Article Id: WHEBN0020865950
Reproduction Date:

Title: Adjust flag  
Author: World Heritage Encyclopedia
Language: English
Subject: Binary arithmetic, X86 architecture, Trap flag, Zilog Z8000, Intel 80486
Collection: Binary Arithmetic, Computer Arithmetic, X86 Architecture
Publisher: World Heritage Encyclopedia
Publication
Date:
 

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

Status register
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 (bit position)
- - - - O D I T S Z - A - P - C Flags
This article was sourced from Creative Commons Attribution-ShareAlike License; additional terms may apply. World Heritage Encyclopedia content is assembled from numerous content providers, Open Access Publishing, and in compliance with The Fair Access to Science and Technology Research Act (FASTR), Wikimedia Foundation, Inc., Public Library of Science, The Encyclopedia of Life, Open Book Publishers (OBP), PubMed, U.S. National Library of Medicine, National Center for Biotechnology Information, U.S. National Library of Medicine, National Institutes of Health (NIH), U.S. Department of Health & Human Services, and USA.gov, which sources content from all federal, state, local, tribal, and territorial government publication portals (.gov, .mil, .edu). Funding for USA.gov and content contributors is made possible from the U.S. Congress, E-Government Act of 2002.
 
Crowd sourced content that is contributed to World Heritage Encyclopedia is peer reviewed and edited by our editorial staff to ensure quality scholarly research articles.
 
By using this site, you agree to the Terms of Use and Privacy Policy. World Heritage Encyclopedia™ is a registered trademark of the World Public Library Association, a non-profit organization.
 


Copyright © World Library Foundation. All rights reserved. eBooks from Project Gutenberg are sponsored by the World Library Foundation,
a 501c(4) Member's Support Non-Profit Organization, and is NOT affiliated with any governmental agency or department.