Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Saved Another Cycle -- Woohoo!

Author: Walter Faxon

Date: 22:29:12 01/06/03

Go up one level in this thread


Hi, Matt.

I haven't been able to completely follow your code (yet!), but there does seem
to be one tiny bug, here marked by "<==".

Also, glad you could use some of my "yabs()" logic -- if that's where you got
it! :)

-- Walter


On January 06, 2003 at 13:12:24, Matt Taylor wrote:

<snip>

>    ; Note, instructions dispatching in the same cycle are grouped.
>    ; Note preservation of ebx/esi.
>    ; Note: this routine tailored to Crafty's bit ordering!
>
>    push       esi
>    mov        esi, DWORD PTR [bb]
>    xor        eax, eax
>
>    mov        ecx, DWORD PTR [bb+4]
>    xor        ebx, ebx               ; <== ebx zeroed...
>    test       esi, esi
>
>    ; 2 cycles
>    cmovz      esi, ecx
>    push       ebx                    ; <== ...prior its preservation
>    setz       al
>    mov        ecx, esi
>    neg        esi

<snip remaining code, etc.>

>-Matt



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.