|Flag register in the 8085 microprocessor
05-25-2012 03:30 AM
Explain briefly the flag register in the 8085 microprocessor.
- The flag register in 8085 is an 8-bit register which contains 5 bit positions.
- These five flags are of 1bit F/F and are known as zero, sign, carry, parity and auxiliary carry.
- For sign flag if the result of an MSB operation is 1 then it is set else it is reset.
- The zero flag is set of the result of an instruction is zero.
- The auxiliary carry flag is used for BCD operations, not free to the programmer.
- The carry flag is used for carrying and borrowing in case of addition and subtraction operations.
- The parity flag is used for results containing an even number of one's.