Exp=-
@p1=
@c1=result = CalculateEx_3("@f.lll",@p, 16, temp_a, temp_b, c, d,KeyPath,2000)
@p2=
@c2=result = CalculateEx_3("@f.lll",@p, 16, temp_a, temp_b, c, d,KeyPath,2000)
@va=temp_a
@vb=temp_b
@vc=c
@vd=d
ext=
mgs=
@end
public function long ydecrease (  long a, long b );
//YDecrease:
//Ŀģ
//aҪı1
//bҪı2
//ؽĽ
//LastError=0ȷLastErrorΪμֲ
   Boolean b_reverse   //ֲڴ淴ת
   Boolean b_negative
	Integer temp
	b_negative = False //ֲڴǷ
    LastError = 0
    //a,bΪΪ
    If ((a > 0 And b > 0) Or (a < 0 And b < 0)) Then
        If (a < 0 And b < 0) Then
            a = -a
		b = -b
		b_negative = True //Ϊa,bΪȻø
        End If
        //ֲ
        Integer temp_a 
        Integer temp_b 
        //a256ȡ
        //ΪʲôҪab256ȡأ
        //ΪCalculateEx_3ʽֻֽڱܳ256
        temp_a = (a - (a / 256) * 256)
        //b120ȡ
        temp_b = (b - (b / 256) * 256)
        //aȥ//bȥ
        //ΪʲôҪֱa,bȥأ
        //Ϊ׼ڼڲμ㣬a,bҪֱȥԼ
        a = a - temp_a
		  b = b - temp_b
        Integer result  //ֲ,ؽ
        Integer c 
        Integer d 
	c = rand(256)-1
	 d = rand(256)-1
        //жtemp_atemp_bĴС
        //temp_atemp_bCalculateEx_3ĵһΪtemp_a
        //temp_aСtemp_bCalculateEx_3ĵһΪtemp_b
        //ΪʲôҪأΪڲֻa>bļa<bѭ޷ʹ÷ص
        If (temp_a > temp_b) Then
            //ⲽa,bĸ͵ڲ
            //@fļе@pλдмʽ
            @1
            //ͬʱδת
            b_reverse = True
        Else
            //ⲽa,bĸ͵ڲ
            //@fļе@pλдмʽ
      		temp=temp_b
		temp_b=temp_a
		temp_a=temp
            @1
            //ͬʱѷת
            b_reverse = False
        End If
        If (result <> 0) Then
            LastError = result //ô
        End If
        //ڼĽصtemp_a
        //ٽǰȥa,bͿˡ
        //ݷתòͬ
        If (b_reverse) Then
            If (b_negative) Then
                return -(a - b + temp_a) //δתa,bΪ
            Else
                return a - b + temp_a //δתa,bΪ
            End If
        Else
            If (b_negative) Then
                return -(a - b - temp_a) //ѷתa,bΪ,
            Else
                return a - b - temp_a //ѷתa,bΪ,
            End If
       End If
		 end if
       return a - b

end function
