The following code is trying to invoke the FPU to calculate…
The following code is trying to invoke the FPU to calculate the square root of (x*y + y squared). The code has a problem. Please select the problem with the code. program FPUFlaw1;#include( “stdlib.hhf” );static x : real32; y : real32; answer : real32;begin FPUFlaw1; stdout.put( “Gimme x: ” ); stdin.get( x ); stdout.put( “Gimme y: ” ); stdin.get( y ); mov( x, EAX ); finit(); fld( EAX ); mov( y, EAX ); fld( EAX ); fmul(); fld( y ); fld( y ); fmul(); fadd(); fsqrt(); fstp( answer ); stdout.put( answer );end FPUFlaw1;
Read Details