pre-Beta Rybkas

Code, algorithms, languages, construction...
User avatar
Rebel
Posts: 515
Joined: Wed Jun 09, 2010 7:45 pm
Real Name: Ed Schroder

Re: pre-Beta Rybkas

Post by Rebel » Fri Oct 21, 2011 11:38 am

BB+ wrote:

Code: Select all

0x00409209:     cmp    $0x1869f,%eax          <--- compares to 99999
Be careful to emphasis "999999" too much, ancient Rebel code: :mrgreen:

_TEXT:0042C46B mov ds:dword_47D088, 0F423Fh

Values like these usually are used as a flag.

hyatt
Posts: 1242
Joined: Thu Jun 10, 2010 2:13 am
Real Name: Bob Hyatt (Robert M. Hyatt)
Location: University of Alabama at Birmingham
Contact:

Re: pre-Beta Rybkas

Post by hyatt » Fri Oct 21, 2011 5:26 pm

The issue is when they are used in the SAME code, in the SAME place, to do the SAME thing. BTW, the 99999 is used in an IF that can NEVER be true in Crafty 19.x (which is what 1.6.1 copied). The -999999 is used in NextMove as a sort value for the hash move only, to push it to the bottom since it has already been searched. Not even sure that is a good idea any longer since the move itself is zeroed in the list anyway. I just try to not change things unless I am certain there is a point, in order to introduce fewer bugs that can be hard to find.

Post Reply