What does the following program do Loop ORIG x3000 LO R2 ZER
What does the following program do? Loop ORIG x3000 LO R2, ZERO LD R0. D0 LD R1.D1 Loop BRz Done ADD R2.R2.R0 ADD R1.R1.-1 BR Loop Done ST R2. Result HALT Result FILL x0000 ZERO FILL x0000 D0 FILL x0003 D1 .FILL x0012 END Construct the symbol table for the program. You may not need to use all rows. What value will be contained in \"Result\" after the program runs to completion?
Solution
a. The program perform compare given two values identical or not
b.
1st iteration R2 is 3 and R1=11
2nd iteration R2 is 6 and R1=10
3rd iteration is R2 is 9 and R1=9
c. The result R2=9
