fxch

Exchange Register

FXCH ST(i)

Exchanges contents of ST(0) and ST(i).

Details

The Exchange Register instruction exchanges contents of ST(0) and ST(i).

Pseudocode Operation

// Exchanges contents of ST(0) and ST(i)

Example

FXCH st(1)

Encoding

Binary Layout
D9
+0
 
Format Legacy
Opcode D9 C8+i
Extension x87 FPU

Operands

  • dest
    x87 FPU stack register ST(i)