![Smile :)](./images/smilies/icon_smile.gif)
I will now explain in more details the patch details.
The basic approach is to use 2 different memory-locations for the max level parameter.
In my implementation the computer_to_move routine uses the old memory location , so basically nothing changes.
For the pondering routine I use another memory location which is not used by the program (sometimes variables are initialized for whatever reason, but never actually used in the program).
Also the ml command is used in the sense that the new maximum level is now stored in the new location.
The 3 patch locations:
- Init of new max level parameter, change the value to 20 (which is the old value, so the program at the start behaves normal).
- pondering routine, change the address of the maximum level parameter to the new address
- command handler, set the address of the max level parameter which receives the new value, into the new address.
In total 4 bytes need to be patched.
That's all folks.
How it is possible to find this in a .exe is another topic
![Smile :)](./images/smilies/icon_smile.gif)
Maybe there is still a direct command which will do the same, but I didn't find it so far...
Bert