I have the below code in one of my programs and am finding it difficult to understand on when exactly it would branch to SETCONFL
XXXXBITS TM 0(R5),X'00' TEST ARRAY FOR CONFLICT
BC 5,SETCONFL
Below is my understanding of the above instructions...
As far as I understand the below 'TEST UNDER MASK" instruction would always set the Condition Code to 0 as the Mask bits are 0.
XXXXBITS TM 0(R5),X'00'
Now coming to the 2nd instruction,condition code is 0000 from above and the mask bits is 0101(binary for 5)..So It doesnt look like the branch will ever take place as there is no on-bit on condition code
BC 5,SETCONFL
SETCONFL MVI 16(R4),C'Y' TURN ON CONFLICT SWCH
Can you please correct me where I got this wrong?
Thanks,
Ram Kumar