What is the value of R3 after the execution of the following program if the value of "NUM" (mem[NUM]) is set to x0005 at the beginning? Program: ORIG LD LD AND The inner loop : AGAIN : ; NUM SIX x3000 R1, SIX R2, NUM R3, R3, #0 ADDR3, R3, R2 ADDR1, R1, #-1 BRP AGAIN HALT BLKW 1 FILL x0006 END Select one: O a. x0018 O b. x001E Oc x000€ O d. x0012 Oe. x0024

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter5: Repetition Statements
Section5.3: Interactive While Loops
Problem 5E
icon
Related questions
Question
100%
What is the value of R3 after the execution of the following program if the value of "NUM" (mem[NUM]) is set to x0005 at the beginning?
Program:
.ORIG
LD
LD
AND
; The inner loop
;
AGAIN
;
NUM
SIX
ADDR3, R3, R2
ADDR1, R1, #-1
BRP AGAIN
HALT
x3000
R1, SIX
R2, NUM
R3, R3, #0
BLKW #1
FILL x0006
END
Select one:
O a. x0018
O b. x001E
O c. x000C
O d. x0012
Oe. x0024
Transcribed Image Text:What is the value of R3 after the execution of the following program if the value of "NUM" (mem[NUM]) is set to x0005 at the beginning? Program: .ORIG LD LD AND ; The inner loop ; AGAIN ; NUM SIX ADDR3, R3, R2 ADDR1, R1, #-1 BRP AGAIN HALT x3000 R1, SIX R2, NUM R3, R3, #0 BLKW #1 FILL x0006 END Select one: O a. x0018 O b. x001E O c. x000C O d. x0012 Oe. x0024
Expert Solution
steps

Step by step

Solved in 3 steps

Blurred answer
Knowledge Booster
Binary numbers
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr