1 ; $Id: _ftol.asm,v 1.1.1.1 2009/09/04 00:27:36 gmcgarry Exp $
3 ; Implementation of _ftol(), _ftol2() for win32 and masm.
6 _TEXT
segment use32 para
public 'CODE'
10 fnstcw word ptr [esp-2]
11 mov ax, word ptr [esp-2]
13 mov word ptr [esp-4], ax
14 fldcw word ptr [esp-4]
15 fistp qword ptr [esp-12]
16 fldcw word ptr [esp-2]
17 mov eax, dword ptr [esp-12]
18 mov edx, dword ptr [esp-8]
25 alias __ftol
= __ftol2