FIST Store integer Exceptions: I P FISTP Store integer and pop C3 C2 C1 C0: ? ? * ?
FIST destination FISTP destination
; FIST ; FISTP Logic destination ← ST destination ← ST pop ST
FIST converts the value in ST into a signed integer according to the RC field of the control word. It then stores ST at destination, which can be either a word or short integer in memory.
FISTP operates like FIST, except that it also pops the stack and supports a long integer destination.
Note If the value in ST is too large to represent an integer, an invalid operation exception is raised. The masked response is to write the most negative integer to memory.
The destination operand cannot be one of the 80x86 general registers.
Opcode Format DF /2 FIST m16 DB /2 FIST m32 DF /3 FISTP m16 DB /3 FISTP m32 DF /7 FISTP m64