fld dword ptr
fmul dword ptr
fmul dword ptr
fmul dword ptr
fsubr dword ptr <- change to addr?
fstp dword ptr
how would i change the following code so it will add in reverse???, there isnt a faddr
fmul dword ptr
fmul dword ptr
fmul dword ptr
fsubr dword ptr <- change to addr?
fstp dword ptr
how would i change the following code so it will add in reverse???, there isnt a faddr
Title: Add
Syntax: FADD
FADDP dest,ST
FADD src
FIADD src
Description:
Adds the source to the destination and returns the sum in the destination. If two register operands are specified, one must be ST. If a memory operand is specified, the sum replaces the value in ST. Memory operands can be 32- or 64-bit real numbers or 16- or 32-bit integers.
If no operand is specified, ST is added to ST(1) and the stack is popped; the sum is returned in ST. For FADDP, the source must be ST; the sum is returned in the destination and ST is popped.
-o-
----------------------------------------------------------------
FADD | fadd st,st(2) | 486 8-20
| fadd st(5),st |
| fadd |
ok thx, but that doesnt tell me how to add it in reverse
src, dest insted of dest,src how would i rearange the code so it Will do that?
src, dest insted of dest,src how would i rearange the code so it Will do that?
Maybe I'm not following the problem well enough :) That happens.
What exactly do you need? You can't do faddr (because there isn't one), but you can add one stack to another... so:
fadd st(1),st
will add the value of st to st(1) and store that value in st(1) unless I'm getting my floating point operands all messed up (Hope not)... If this doesn't help maybe you could clarify the problem for me and example what exactly you need to do...
Sliver
What exactly do you need? You can't do faddr (because there isn't one), but you can add one stack to another... so:
fadd st(1),st
will add the value of st to st(1) and store that value in st(1) unless I'm getting my floating point operands all messed up (Hope not)... If this doesn't help maybe you could clarify the problem for me and example what exactly you need to do...
Sliver
i explaned my problem at the top
fld dword ptr
fmul dword ptr
fmul dword ptr
fmul dword ptr
fsubr dword ptr <- change to add in revease
fstp dword ptr
i need it to add in reverse like sub in revearse.
by rearanging the code somehow
fld dword ptr
fmul dword ptr
fmul dword ptr
fmul dword ptr
fsubr dword ptr <- change to add in revease
fstp dword ptr
i need it to add in reverse like sub in revearse.
by rearanging the code somehow
Is it me? I give up. Anyone else want to give it a shot.
:) :) :)
Sliver
ps. I'll take another good look at your problem when I'm nice and drunk tonight, it should be a better answer :)
:) :) :)
Sliver
ps. I'll take another good look at your problem when I'm nice and drunk tonight, it should be a better answer :)
Qages,
could you just write formula you want to calculate, using
pointers instead of letters for vars.
could you just write formula you want to calculate, using
pointers instead of letters for vars.