.data x dd 5 y dd ? five dw 5 four dw 4 three dw 3 one dw 1 Цитата: ... mov x,ecx fild x ; х в регистр сопроцессора st(0) fild five ; st(0)=5, st(1)=x fsub ; st(0)=x-5 fabs ; st(0)=|x-5| fist y ; y=что нужно mov edx,y ... Цитата: mov x,ecx fild x ; st(0)=x fild x ; st(0)=x; st(1)=x fmul ; st(0)=x*x fild four ; st(0)=4; st(1)=x*x fild x ; st(0)=x; st(1)=4; st(2)=x*x fmul ; st(0)=4*x; st(1)=x*x fadd ; st(0)=x*x+4*x fild three ; st(0)=3; st(1)=x*x+4*x fsub ; st(0)=x*x+4*x-3 fist y mov edx,y Цитата: ... fild x fild one fsub ; st(0)=x-1 fmul st(0),st ; st(0)=st(0)*st(0)=(x-1)^2 |