Quoteconst char a[6] = {60, 61, 62, 63, 64, 65, 66};That should be a[7]. There are 7 values.
Quoteif (z != 65)This may be your problem. The original HuC would see the 65 as an int, and then screw up the compare. IIRC, it would compare two bytes, using the byte after z as the high byte for the compare.
Not sure thats the problem, but you might want to check it. HuC really doesn't llike it when you mix types.


