Flags are stored in the F register. The bits are as follows:
bit 7: Sign flag
bit 6: zero flag
bit 5: unused
bit 4: half carry
bit 3: unused
bit 2: Parity/Overflow
bit 1: Add/subtract flag
bit 0: carry flag
you can change the flags using bit masking techniques
bud