وو

وحید آنلاین . آرشیو وبلاگ وحیدمی دات آی آر . شرکت بیان. vahidmy.blog.ir

وو

وحید آنلاین . آرشیو وبلاگ وحیدمی دات آی آر . شرکت بیان. vahidmy.blog.ir

FIST

FIST 

Usage: FIST dest                                     Modifies flags:C1 is cleared; C0, C2, C3 undefined.

Converts the value in the ST(0) register to a signed integer and stores the result in the 'dest' operand. Values can be stored in word or doubleword integer format. The 'dest' operand specifies the address where the first byte of the 'dest' value is to be stored, then pops the register stack. 

Floating-Point/Integer Conversion


FILD mem16                    ; DF /0                [8086,FPU]

FILD mem32                    ; DB /0                [8086,FPU]

FILD mem64                    ; DF /5                [8086,FPU]


FIST mem16                    ; DF /2                [8086,FPU]

FIST mem32                    ; DB /2                [8086,FPU]


FISTP mem16                   ; DF /3                [8086,FPU]

FISTP mem32                   ; DB /3                [8086,FPU]

FISTP mem64                   ; DF /7                [8086,FPU]


FILD loads an integer out of a memory location, converts it to a real, and pushes it on the FPU register stack. FIST converts ST0 to an integer and stores that in memory; FISTP does the same as FIST, but pops the register stack afterwards.


EXAMPLE:

fist Label