VOGONS


First post, by superfury

User metadata
Rank l33t++
Rank
l33t++

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?

Author of the UniPCemu emulator.
UniPCemu Git repository
UniPCemu for Android, Windows, PSP, Vita and Switch on itch.io

Reply 1 of 1, by peterferrie

User metadata
Rank Oldbie
Rank
Oldbie

It's the regular bits, just like a PUSHF/POP AX/MOV AH,AL would produce.