Difference of a and b, or c, whichever is greater
Syntaxsub(a,b,c)
Original Machine Code (in OPER resource) of Filter Factory 3.0 and 3.0.4 for Photoshop/Win32
59 | pop ecx (param_c) | . |
5B | pop ebx (param_b) | . |
58 | pop eax (param_a) | . |
2B C3 | sub eax,ebx | param_a -= param_b; |
3B C1 | cmp eax,ecx | . |
7F 02 | jnle +$02 (@@1) | if (param_a > param_c) goto @@1; |
8B C1 | mov eax,ecx | param_a = param_c; |
@@1: | @@1: | |
50 | push eax | return param_a; |