Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

For the program below, give the values for I_COUNT and J_COUNT to get a loop ite

ID: 3540179 • Letter: F

Question

For the program below, give the values for I_COUNT and J_COUNT to get a loop iteration of 60,000.

R0                           EQU       $1000
R1                           EQU       $1001
I_COUNT                 EQU       ______               
J_COUNT                EQU       ______

                              LDAA                           #I_COUNT
                              STAA                           R0
L2                          LDAA                           #J_COUNT
                              STAA                           R1
L1                          CLRA
                              NOP
                              NOP
                              DEC                             R1
                              BNE                             L1
                              DEC                             R0
                              BNE                             L2

H_1                        BRA                             H_1

      I_COUNT = 60, J_COUNT=100
      I_COUNT = 30, J_COUNT=200
      I_COUNT = 60, J_COUNT=200
      I_COUNT = 15, J_COUNT=4000

Explanation / Answer

I_COUNT = 15

J_COUNT = 4000