Question: .BEGIN IN TERM LOAD TERM COMPARE ONE JUMPEQ FIRST COMPARE TWO JUMPEQ SECOND START: LOAD PREV AD CUDD ADD CURR STO Nev STORE NEXT LA

 .BEGIN IN TERM LOAD TERM COMPARE ONE JUMPEQ FIRST COMPARE TWO

.BEGIN IN TERM LOAD TERM COMPARE ONE JUMPEQ FIRST COMPARE TWO JUMPEQ SECOND START: LOAD PREV AD CUDD ADD CURR STO Nev STORE NEXT LA LOAD CURR STORE PREV LOAD NEXT STORE CURR DECREMENT TERM LOAD TERM COMPARE TWO JUMPEQ STOP JUMP START STOP: OUT NEXT JUMP FINISH FIRST: OUT PREV JUMP FINISH SECOND: OUT CURR MD JUMP FINISH FINISH: HALT PREV: .DATA 1 CURR: .DATA 1 NEXT: .DATA 0 ONE: .DATA 1 TWO: .DATA 2 TERM: .DATA 0 .END Desk check the above assembly program using 5 as the input. Show the values of all the labelled data locations, the value of the R register, and any output using the table below. If a value changes, enter the value in the next cell on the same row. In other words don't enter the value if the value stays the same. R: ? PREV: 1 CURR: 1 NEXT: 0 ONE: 1 2 TWO: TERM: 0 Output: 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: LT: E

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