FilterFactory - Operator "||" (logical "or")

Back to function listing

Syntax

a||b

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

58 pop eax (param_b) .
5B pop ebx (param_a) .
83 F8 00 cmp eax,$00 (0) tmp = param_b;
B8 00 00 00 00 mov eax,$00000000 (0) param_b = 0;
75 05 jnz +$05 (@@1) if (tmp != 0) goto @@1; // return 1
83 FB 00 cmp ebx,$00 (0) .
74 01 jz +$01 (@@2) if (param_a == 0) goto @@2; // return 0
@@1: @@1:
40 inc eax param_b++;
@@2: @@2:
50 push eax return param_b;