Question: ( 1 0 points ) For the program below, describe what does it do using at most 2 0 words, and find the value stored

(10 points) For the program below, describe what does it do using at most 20 words, and find the value stored at the memory location labelled with RESULT after the program terminates.
Label Instruction
.ORIG x3000
LD R2, ZERO LD R0, M0 LD R1, M1
LOOP BRz
ADD R2, R2, R0
ADD R1, R1, #-1 BRnzp LOOP
DONE ST HALT
RESULT .FILL ZERO .FILL
M0.FILL
M1.FILL
.END
R2, RESULT
x0000 x0000 x0004 x0803

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!