Question: Problem 3: 8 points) Consider the following assembly program: ORIG X3000 AND R5, R5, #0 LD R6, INPUT LOOP BRz END BRp SKIP ADD R5,
Problem 3: 8 points) Consider the following assembly program: ORIG X3000 AND R5, R5, #0 LD R6, INPUT LOOP BRz END BRp SKIP ADD R5, R5, #1 ADD R6, R6, R6 BR LOOP SKIP END ST R5, RESULT HALT FILL x1234 END INPUT RESULT BLKW 1 a. Run the program in PennSim and give a brief explanation of what the program does. (i.e. Specify how the value at RESULT relates to value at the INPUT after the execution of the program). Attach a screenshot of the final result obtained after execution of the program in PennSim. (Show the value at the address of RESULT and also the registers table). b. c. How many times does the instruction at label LOOP execute? d. What value will be contained in R6 after the execution of the program
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
