Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: TASM and MMX Instructions

Author: Larry Griffiths

Date: 06:32:49 01/19/99

Go up one level in this thread


On January 19, 1999 at 06:02:48, Bo Persson wrote:

>On January 18, 1999 at 23:44:01, Larry Griffiths wrote:
>
>>My chess program is written in Borland (Inprise) C++ Builder.
>>C++ Builder comes with TASM (Version 5.x I think).
>>I am doing some inline assembler using MMX instructions.
>>The assembler likes MMX opcodes like MOVQ, PAND, and EMMS.
>>It displays an error message that PSLL is an illegal instruction.
>>Intel documentation says that PSLL is a shift right logical.
>>
>>Has anybody used this instruction with TASM (Turbo Assembler)?
>
>Hi Larry!
>
>First, PSLL looks more like shift *left* logical :-)
>
>Anyway, you have to tell the size of the operands, that is if you are shifting
>packed words, doublewords or quad words. Use PSLLW, PSLLD, or PSLLQ
>respectively. (Or PSRLW etc, to shift in the other direction).
>
>
>
>Bo Persson
>bop@malmo.mail.telia.com

Bo,

Thanks for your reply.  Yep, the PSLLQ works.  I created some code with
the MMX instructions and it is not any faster (Possibly slower)
than using the C++ code (which uses integer instructions).  I am going
to get some of the Intel Developer's manuals and check into
pipelining and instruction pairing.

Larry



This page took 0 seconds to execute

Last modified: Thu, 15 Apr 21 08:11:13 -0700

Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.