I have used a program similar to this on psp long ago. all Im doing is you start off with a search for a unknown value, then you change something on the game, whether it be lose a hitpoint or life or even gain an item, once you say, lose a hitpoint, for instance, you do another unknown search for a lower value, then lose another hitpoint and search again until you have only a few possibilities left, then gain a hitpoint and search for a higher value, and through the process of elimination, it gives you the code you are looking for.