WCMP, DWCMP

WCMP arg1, arg2
DWCMP arg1, arg2

Compares arg1 and arg2. WCMP operates on words (16 bits) and DWCMP operates on double words (32 bits).

P M F S C T D Constants
arg1,arg2 O O O O

Flags

F73 (zero flag) - ON if s1 and s2 are equal
F66 (less than flag) - ON if s1 is less than s2
F67 (greater than flag) - ON if s1 is greater than s2

Go CUBLOC Ladder Logic home