BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

BASM Test 2007

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Language BASM
View previous topic :: View next topic  
Author Message
HpW
Guest





PostPosted: Thu Mar 29, 2007 12:06 am    Post subject: BASM Test 2007 Reply with quote



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





PostPosted: Thu Mar 29, 2007 12:39 am    Post subject: Re: BASM Test 2007 Reply with quote



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





PostPosted: Thu Mar 29, 2007 2:17 am    Post subject: Re: BASM Test 2007 Reply with quote



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





PostPosted: Thu Mar 29, 2007 10:58 pm    Post subject: Re: BASM Test 2007 Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Language BASM All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.