| View previous topic :: View next topic |
| Author |
Message |
HpW Guest
|
Posted: Thu Mar 29, 2007 12:06 am Post subject: BASM Test 2007 |
|
|
Hello,
does someone may test for me the following using the new Delphi 2007
while some BASM functions are not build in Delphi 7
--------------------------------------------------------------------------------------------------------------------
program BASMTest;
{$APPTYPE CONSOLE}
uses
SysUtils;
Procedure Test;
Const
CD_1 : Double = 1.04;
CE_1 : Extended = 1.04;
Asm
Ret
// Delphi 7 OK
//''''''''''''
fst qword ptr [edi]
fmul qword ptr [CD_1]
fld tbyte ptr [edi]
fstp tbyte ptr [edi]
// Delphi 7 BUG !!!
//'''''''''''''''''
fst tbyte ptr [edi]
fmul tbyte ptr [CE_1]
End;
begin
end.
--------------------------------------------------------------------------------------------------------------------
Best regards
hpw |
|
| Back to top |
|
 |
Andreas Hausladen Guest
|
Posted: Thu Mar 29, 2007 12:39 am Post subject: Re: BASM Test 2007 |
|
|
| Quote: | fst tbyte ptr [edi]
fmul tbyte ptr [CE_1]
|
Both statements do not compile in Delphi 2007
--
Regards,
Andreas Hausladen |
|
| Back to top |
|
 |
Les Pawelczyk Guest
|
Posted: Thu Mar 29, 2007 2:17 am Post subject: Re: BASM Test 2007 |
|
|
| Quote: | fst tbyte ptr [edi]
|
There is no FST with extended type. You must use FSTP.
| Quote: | fmul tbyte ptr [CE_1]
|
Same here - load it first, then multiply.
Les. |
|
| Back to top |
|
 |
HpW Guest
|
Posted: Thu Mar 29, 2007 10:58 pm Post subject: Re: BASM Test 2007 |
|
|
On Wed, 28 Mar 2007 17:17:23 -0400, "Les Pawelczyk" <a (AT) b (DOT) c> wrote:
| Quote: | fst tbyte ptr [edi]
There is no FST with extended type. You must use FSTP.
fmul tbyte ptr [CE_1]
Same here - load it first, then multiply.
Les.
|
OK,
I see now, while this functions are regarding the Intel Doc's not
implemented and must be used first using fld st(0) then the fstp!
Thanks
hpw |
|
| Back to top |
|
 |
|