FilterFactory - Function "ctl"

Back to function listing

Value of slider i, where i is an integer between 0 and 7, inclusive.

Syntax

ctl(i)

Original Machine Code (in OPER resource) of Filter Factory 3.0 and 3.0.4 for Photoshop/Win32

5B pop ebx (param_i) .
2B C0 sub eax,eax res = 0;
0B DB or ebx,ebx .
7C 09 jl +$09 (@@1) if (param_i < 0) goto @@1; // return 0
83 FB 07 cmp ebx,$07 (7) .
7F 04 jnle +$04 (@@1) if (param_i > 7) goto @@1; // return 0
8B 44 9F 64 mov eax,[edi+ebx*4+$64 (ctl)] res = ctl[param_i];
@@1: @@1:
50 push eax return res;