I understand CLC is used to compare two strings. If we want to compare by character in CLC, we give something like as follows:

CLC VAR1(1), = C'R' ====> Here we are trying to compare 1st byte of VAR1 with a constant value "R".

If I give the above statement as follows,
CLC VAR1(1), C'R' (WITHOUT COMMAS),

will i get the expected results? If not, why won't i get the expected results?

Please clarify.

Thanks.
Posted on 2007-05-15 05:01:58 by ganesh_r01
=C'R' means a constant put in LTORG pool by assembler. Assembler replace it by base+displacement

C'R' means the value of letter R which is X'D9'. You try to compare 1st byte of VARS1 with the content at address 000000D9. It is not what you will!!!
Posted on 2007-05-17 15:42:07 by a1sbofo