FCHS
Change Sign
stableVMJITAOTinstruction
Encodings
Measured cost
Description#
Complements the sign bit of ST(0). This operation changes a positive value into a negative value of equal magnitude or vice versa. The following table shows the results obtained when changing the sign of various classes of numbers.
FCHS Results
Operation#
SignBit(ST(0)) := NOT (SignBit(ST(0)));
FPU Flags Affected
C1 Set to 0.
C0, C2, C3 Undefined.
Floating-Point Exceptions#
#IS Stack underflow occurred.
Exceptions
Protected mode
Real address mode
Virtual-8086 mode
Compatibility mode
64-bit mode
Sources