First post, by superfury
What are the values of the indeterminate bits in AH after an LAHF? Are they always the sticky flags of the FLAGS register, all cleared, all set or are they all whatever was in AH before executing LAHF(so just modifying the defined bits that are documented in EFLAGS)?
So what's in AH bits 1,3,5 after LAHF? The bits that were there before(unmodified)? 1s? 0s? The stuck bits in the FLAGS register?
UniPCemu currently stores the stuck bits of (E)FLAGS there, which may be hardware-dependent.
Is that correct behaviour?