The Flag register is a Special Purpose Register which shows the status of the task. This is an 8-bit register but the only 5bit is used for the operation. The flag becomes set or reset after arithmetic and logical operation.
The flag register has 5 flags which are Sign flag, Zero flag, Auxiliary carry flag, Parity flag, and the Carry flag.