From f3a4946597198393d178892a9c230e0f11c1b722 Mon Sep 17 00:00:00 2001 From: Counterply Date: Wed, 6 Jun 2018 16:12:37 -0400 Subject: [PATCH] Tweak probcut margin with 'improving' flag bench 5328259 5328254 is the official bench but 5328259 is correct since official-stockfish/Stockfish@59d1037 was skipped in asmFish. See discussion at lantonov#165 for more details. --- x86/SearchMacros.asm | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/x86/SearchMacros.asm b/x86/SearchMacros.asm index 51699ced0..4d84302d9 100644 --- a/x86/SearchMacros.asm +++ b/x86/SearchMacros.asm @@ -245,7 +245,7 @@ Display 2, "Search(alpha=%i1, beta=%i2, depth=%i8) called%n" mov dword [.evalu], eax mov dword[rbx+State.staticEval], eax mov rcx, qword[rbx+State.checkersBB] - mov byte[.improving], 1 + mov byte[.improving], 0 test rcx, rcx jnz .moves_loop mov edx, dword[rbx-1*sizeof.State+State.currentMove] @@ -559,8 +559,11 @@ Display 2, "Search(alpha=%i1, beta=%i2, depth=%i8) called%n" Assert ne, dword[rbx-1*sizeof.State+State.currentMove], 0 , 'assertion dword[rbx-1*sizeof.State+State.currentMove] != MOVE_NONE failed in Search.Step9' Assert ne, dword[rbx-1*sizeof.State+State.currentMove], MOVE_NULL, 'assertion dword[rbx-1*sizeof.State+State.currentMove] != MOVE_NULL failed in Search.Step9' + movzx ecx, byte[.improving] + imul ecx, 48 mov edi, dword[.beta] - add edi, 200 + add edi, 216 + sub edi, ecx mov eax, VALUE_INFINITE cmp edi, eax cmovg edi, eax