/// <summary>
/// Compare two variables and set the flags.
/// </summary>
public static HITResult Cmp(HITThread thread) //same as sub, but does not set afterwards.
{
var dest = thread.ReadByte();
var src = thread.ReadByte();
var result = thread.ReadVar(dest) - thread.ReadVar(src);
thread.SetFlags(result);
return(HITResult.CONTINUE);
}