Author: Severi Salminen
Date: 08:27:00 01/14/02
Go up one level in this thread
>I'm using this for LastBit() for a8 = 0, b8 = 1, h1 = 63 orientation: > > bsr eax, [bb + 4] > jz L10 > add eax, 32 > jmp L11 >L10: > bsr eax, [bb] >L11: > >This should work, but I'm relatively new to assembly and I wonder if this can >get any better...? Well, you could remove the other jmp and add one "sub eax,32". It would have less branches but not sure if it was faster. Try it: bsr eax,bb+4 jnz exit bsr eax,bb sub eax,32 exit: add eax,32 ...or something. Your orientation makes my head spin so double check the above. 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.