Multiple choice technology mainframe

For Instruction BCTR R2 = 8 A1 = ADDR1 BC R2,A1 - - - ADDR1: MVC A,B - - -Which of the following is true?

  1. ADDR1 will execute until R2 becomes 0.

  2. ADDR1 will execute until R2 becomes 8.

  3. ADDR1 will never be executed.

  4. All of the above.

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

The BCTR (Branch on Count Register) instruction decrements the register (R2) by 1. If R2 is not 0, it branches. Since it loops back to ADDR1 and decrements R2, the loop at ADDR1 will execute repeatedly until the register R2 becomes 0.