[discuss] SAHF instruction not available in 64-bit mode
Nitin Puri
npuri at cadence.com
Thu Apr 8 11:32:10 CEST 2004
Thanx Andi.
Exactly the same way that I've implemented it.
I was curious why this instruction has been removed
from 64-bit mode ? Or if it been reassigned.
LAHF too.
Rgds,
Nitin
At 02:29 Nitin 4/8/2004, Andi Kleen wrote:
>On Thu, 08 Apr 2004 13:25:19 +0530
>Nitin Puri <npuri at cadence.com> wrote:
>
> > The instruction SAHF, which loads the SF, ZF, AF, PF, and CF flags
> > of the EFLAGS register with values from the corresponding bits in the
> > AH register, is not available in 64-bit mode on Opetron.
> >
> > Is there any equivalent instruction that I can use for this in 64-bit
> mode ?
>
> push $neweflagsvalue
> popf
>
>-Andi
More information about the discuss
mailing list