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
@end
                                        
'YDecrease:
'Ŀģ
'aҪı1
'bҪı2
'ؽĽ
'LastError=0ȷLastErrorΪμֲ
Public Function YDecrease(ByVal a As Long,ByVal  b As Long) As Long
    Dim b_reverse As Boolean  'ֲڴ淴ת
   Dim b_negative As Boolean: 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
        'ֲ
        Dim temp_a As Integer
        Dim temp_b As Integer
        '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
        Dim result As Integer 'ֲ,ؽ
        Dim c As Integer
        Dim d As Integer
	c = Int(Rnd * 256): d = Int(Rnd * 256)
        'ж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ĸ͵ڲ,c,dԡ
            '@fļе@pλôмʽ
	    '
            @1
            'ͬʱδת
            b_reverse = True
        Else
            'ⲽa,bĸ͵ڲ,c,dԡ
            '@fļе@pλôмʽ
           dim temp as integer
	    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
                YDecrease = -(a - b + temp_a) 'δתa,bΪֱtemp_aȻȡ
            Else
                YDecrease = a - b + temp_a 'δתa,bΪֱtemp_a
            End If
        Else
            If (b_negative) Then
                YDecrease = -(a - b - temp_a) 'ѷתa,bΪ,ȥtemp_b,Ȼȡ
            Else
                YDecrease = a - b - temp_a 'ѷתa,bΪ,ȥtemp_b
            End If
       End If
     Else
       YDecrease = a - b
     End If
End Function