Smaller flag issues found while reviewing the lifter, grouped since each is a line or two:
CPL uses flags="*", but it only sets H and N.
SCF / CCF do not touch H or N.
LD A,I / LD A,R set no flags; they should set S and Z, clear H and N, and copy IFF2 into P/V.
RETI / RETN do not model IFF1 <- IFF2.
CPI / CPD write only Z.
pv is mapped to OverflowFlagRole, so parity after logic ops is modelled as signed overflow (there is already a TODO about this in the source).
Smaller flag issues found while reviewing the lifter, grouped since each is a line or two:
CPLusesflags="*", but it only sets H and N.SCF/CCFdo not touch H or N.LD A,I/LD A,Rset no flags; they should set S and Z, clear H and N, and copy IFF2 into P/V.RETI/RETNdo not model IFF1 <- IFF2.CPI/CPDwrite only Z.pvis mapped toOverflowFlagRole, so parity after logic ops is modelled as signed overflow (there is already a TODO about this in the source).