5. (TCO 5) For the program below, give the values for I_COUNT and J_COUNT to get
ID: 1847123 • Letter: 5
Question
5. (TCO 5) For the program below, give the values for I_COUNT and J_COUNT to get a loop iteration of 10,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 (Points : 3) I_COUNT = 10, J_COUNT=100
I_COUNT = 100, J_COUNT=10
I_COUNT = 100, J_COUNT=100
I_COUNT = 10, J_COUNT=10 5. (TCO 5) For the program below, give the values for I_COUNT and J_COUNT to get a loop iteration of 10,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 (Points : 3)
Explanation / Answer
I_COUNT = 100, J_COUNT=100
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.