I started learning Z80 recently, but I'm struggling with flags.
I want to get the range of register "B" in Z80 assembly.
This is the problem that I faced. Register "A" is 43H (in Hexadecimal number) and I want to sub register "B" from that, doing in 8-bit subtraction.
How can I get the each range of register "B" that would produce:
- C Flag becomes 1
- S flag becomes 1
- P/V flag becomes 1