Question: Figure Q4 is a complete program for the courses simulated processor. Assume all numbers are in hexadecimal. Note: The above code contains an instruction Logical

Figure Q4 is a complete program for the courses simulated processor. Assume all numbers are in hexadecimal.

 Figure Q4 is a complete program for the courses simulated processor.

Note: The above code contains an instruction Logical Shift Right (LSR), which will shift the contents of the register D0 by 2 places. (a) Name any THREE (3) Status Flags associated with the E114 Simulator and explain under what conditions each will get SET or RESET.

(c) The program includes a loop. Which register is being used as a loop counter and how many times in total will the set of instructions within the loop be executed?

START LOOP ORG MOVE MOVE.B MOVE.L MOVE.B ADD.L SUB.B BNE LSR MOVE.B STOP $1000 #MARKS, A0 STUDENTS, D2 #$0, DO (10) +, 01 D1, DO #$1, D2 LOOP #2, DO ; Logical Shift Right by 2 places DO, RESULT #$ 2700 ; stop Simulator $2000 $4 STUDENTS MARKS RESULT ORG DC.B DC.W DC.B END $55, $66, $88, $77 START Figure 04 START LOOP ORG MOVE MOVE.B MOVE.L MOVE.B ADD.L SUB.B BNE LSR MOVE.B STOP $1000 #MARKS, A0 STUDENTS, D2 #$0, DO (10) +, 01 D1, DO #$1, D2 LOOP #2, DO ; Logical Shift Right by 2 places DO, RESULT #$ 2700 ; stop Simulator $2000 $4 STUDENTS MARKS RESULT ORG DC.B DC.W DC.B END $55, $66, $88, $77 START Figure 04

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!