Exp=f
//@p1=a:= aSoft_enc_1.a;
@c1=KeyReturn:= Cal_2('@f', @p, 16, a, b, c, d, PAnsiChar(KeyPath), 2000);
//@p2=a:= aSoft_enc_1.a;
@c2=KeyReturn:= Cal_2('@f', @p, 16, a, b, c, d, PAnsiChar(KeyPath), 2000);
@va=a
@vb=b
@vc=c
@vd=d
@end
                                        
//YCompareVal_1ãȽֵĴС൱a>b,a<b,a=b
//V1ҪȽϵĵһ
//V2ҪȽϵĵڶ
//expȽϷ'>'Ǵڣ'<'Сڣ'='ǵ
//ؽ棬ʾĴСȽϱʽ򷵻ؼ
//KeyLastError=0ȷΪμֲ
function YCompareVal_1(V1, V2: longint; Exp: AnsiChar): boolean;
var
  a, b, c, d: byte;
  KeyReturn: integer;
begin
  Result:= False;
  KeyLastError:= 0;

//V1ֲĸֽڡ
{$R-} //ҪλʱȡԽ
  a:= byte(V1);
  b:= byte(V1 shr 8);
  c:= byte(V1 shr 16);
  d:= byte(V1 shr 24);

//ⲽa,b,c,d͵ڲм,
//@fļе@pλдмʽ
  KeyReturn:= Cal_2('@f', @p, 16, a, b, c, d, PAnsiChar(KeyPath), 2000);
  if KeyReturn<> 0 then
    begin
    Result:= boolean(Random(2));
    KeyLastError:= KeyReturn; //ô
    Exit;
    end;

//Ҫܺa,b,c,dڼӦĽ㣻
//ΪӦļô󣬾ܷԭֵ
//ҪµĽ
  @1
//ĸֽٺϲһ
  V1:= longint(a) or longint(b shl 8) or longint(c shl 16) or longint(d shl 24);

//{$R+} //ָָʾԽ⣬ɲøü⡣

  case Exp of        //ݱȽϷŶֵбȽϣ
    '>': Result:= V1> V2;
    '<': Result:= V1< V2;
    '=': Result:= V1= V2;
  else
    KeyLastError:= -46; //-46ʾExpЧ
  end;
end;
////////////////////////////////////////////////////////////////////////////////