Computer Chess Club Archives


Search

Terms

Messages

Subject: Please test "bsf eax, VAR", VAR==0

Author: Severi Salminen

Date: 05:19:25 01/17/02


I'd really like to know if it is safe to assume, the eax will be left
unaffected.

Som do this:

mov eax,0xffffffff
mov dword ptr VAR,0

start:
bsf eax,dword ptr VAR
cmp eax, 0xffffffff
jne exit
bsr eax,dword ptr VAR
cmp eax, 0xffffffff
jne exit
jmp start
exit:

Let it run a little and check if it ever goes to exit:. I have not yet gotten
any good answers from Intel, but they are working on it. I won't use the fast
firstbit() and lastbit() versions if the above assumption is not valid.

Severi



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.