This website uses cookies to personalize content and analyse traffic in order to offer you a better experience. By continuing to browse, you agree to our use of cookies. See our Cookie Policy for details. Cookie policy
8051 PSW
8051 flags are status bits in the PSW register that record arithmetic and logic results for use by branch, compare, and multi-byte operations.
8051 flags are status bits in the PSW register that record arithmetic and logic results for use by branch, compare, and multi-byte operations.
The carry flag CY is used for addition, subtraction, rotates, and multi-byte arithmetic. Auxiliary carry AC helps BCD adjustment. Overflow OV indicates signed arithmetic overflow. Parity P reflects accumulator parity. User and register bank bits also live in PSW.
Flags let firmware make decisions after arithmetic or bit operations. For example, multi-byte addition uses carry propagation, compare routines use carry and zero-like conditions, and signed calculations need overflow awareness.
Use these related CourseTron guides to connect this topic with the complete embedded systems foundation.
They are stored in the Program Status Word, or PSW, register.
The carry flag is used to propagate carries between lower and higher bytes.