Given the following code:
ORIG 0x3000
LEA R1, NUMS
AND R3, R3, #0
AND R2, R2, #0
ADD R2, R2, #5
LOOP BRZ DONE
LDR R4, R1, #0
ADD R3, R3, R4
ADD R1, R1, #1
ADD R2, R2, #-1
BRnzp LOOP
DONE ST R3, SUM
HALT
NUMS FILL 3
F ILL -4
F ILL 5
F ILL 3
F ILL 0
SUM BLKW 1
END
Symbol Table
Label Address
LOOP x3004
DONE x300A
NUMS x300C
SUM x3011
1) What is the address of the symbol LOOP? x3004
2) What is the value of R1 after the second line of code is executed? x300C
3) How many times is the loop executed? infinte
4) R2 points to successive memory locations in the array as the loop iterates (T/F)?
F
5) When the program halts, what is the content of the location with label SUM in decimal?