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
Posted on 2002-05-04 13:40:38 by Qages

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 |
Posted on 2002-05-04 14:56:11 by Sliver
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?
Posted on 2002-05-04 15:23:37 by Qages
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
Posted on 2002-05-04 15:52:52 by 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
Posted on 2002-05-04 15:59:46 by Qages
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 :)
Posted on 2002-05-04 16:10:17 by Sliver
Qages,
could you just write formula you want to calculate, using
pointers instead of letters for vars.
Posted on 2002-05-04 16:13:17 by The Svin