Question: . BEGIN L 1 : LOAD Y COMPARE ZERO JUMPEQ L 2 ADD X STORE X DECREMENT Y JUMP L 1 L 2 : OUT
BEGIN
L: LOAD Y
COMPARE ZERO
JUMPEQ L
ADD X
STORE X
DECREMENT Y
JUMP L
L: OUT X
HALT
X: DATA
Y: DATA
ZERO: DATA
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 Question
Answer Question
Answer Question
Answer Question
Answer Question
Answer Question
Answer Question
Answer Question
Answer Question
Answer Question
Answer Question
X: Answer Question
Answer Question
Answer Question
Answer Question
Answer Question
Y: Answer Question
Answer Question
Answer Question
Answer Question
Answer Question
ZERO:
Output: Answer Question
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 Question
LT: Answer Question
EQ:
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
