; FILE "fpu1.c" SECTION .text GLOBAL foo foo: push ebp ; set up stack frame mov ebp,esp sub esp,80 fld qword [ebp-64] ; push x3 on FPU stack fadd qword [ebp-56] ; add x4 to top of FPU stack fadd qword [ebp-72] ; add x2 to top of FPU stack fadd qword [ebp-80] ; add x1 to top of FPU stack fstp qword [ebp-8] ; store result in y leave ; take down stack frame ret