In the program I am running, ESI+0A4 would typically represent a whole number somewhere between 0 and 200 roughly. The current formula would look something like this:
1 - (0.0028 x [ESI+0A4]) = XXXXX
If the ESI value was say, 50 then the result would be 0.86
How do I modify the below so the formula looks like this instead?:
1-((0.0028x[ESI+0A4])^2)
FMUL DWORD PTR DS:[ESI+5C]
FSTP DWORD PTR DS:[ESI+5C]
FSAVE DS:[0A0D0A0]
FLD DWORD PTR DS:[0A0D454]
FLD DWORD PTR DS:[ESI+0A4]
FMUL ST,ST(1)
FLD DWORD PTR DS:[0A0D450]
FSUB ST,ST(1)
FSTP DWORD PTR DS:[ESI+5C]
FRSTOR DS:[0A0D0A0]
JMP 004AB486
Thanks to Peter's advice, I will revise it so that it shows the following:
FMUL DWORD PTR DS:[ESI+5C]
FSTP DWORD PTR DS:[ESI+5C]
FLD DWORD PTR DS:[0A0D454]
FLD DWORD PTR DS:[ESI+0A4]
FMUL ST,ST(1)
FMUL ST,ST
FLD DWORD PTR DS:[0A0D450]
FSUB ST,ST(1)
FSTP DWORD PTR DS:[ESI+5C]
JMP 004AB486