Question: . BEGIN L 1 : LOAD Y COMPARE ZERO JUMPEQ L 2 ADD X STORE X DECREMENT Y JUMP L 1 L 2 : OUT

.BEGIN
L1: LOAD Y
COMPARE ZERO
JUMPEQ L2
ADD X
STORE X
DECREMENT Y
JUMP L1
L2: OUT X
HALT
X: .DATA 0
Y: .DATA 5
ZERO: .DATA 0
.END
Desk check the above assembly program. Show the values of all the labelled data locations, the value of the R register, and any output using the table below. Every time a register or memory location is written to enter the value in the next cell on the same row.
R: ? Answer 1 Question 3
Answer 2 Question 3
Answer 3 Question 3
Answer 4 Question 3
Answer 5 Question 3
Answer 6 Question 3
Answer 7 Question 3
Answer 8 Question 3
Answer 9 Question 3
Answer 10 Question 3
Answer 11 Question 3
X: 0 Answer 12 Question 3
Answer 13 Question 3
Answer 14 Question 3
Answer 15 Question 3
Answer 16 Question 3
Y: 5 Answer 17 Question 3
Answer 18 Question 3
Answer 19 Question 3
Answer 20 Question 3
Answer 21 Question 3
ZERO: 0
Output: Answer 22 Question 3
At the HALT instruction in the program above, what are the values of condition codes GT, LT, and EQ? Answer using the table below.
GT: Answer 23 Question 3
LT: Answer 24 Question 3
EQ:

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 Finance Questions!