Question: a) Status register contains the Condition Code Register (CCR) which is used for indicating the result of a program execution. Explain the function of all

 a) Status register contains the Condition Code Register (CCR) which is

a) Status register contains the Condition Code Register (CCR) which is used for indicating the result of a program execution. Explain the function of all the Condition Code Register flags as shown in Figure Q2(a). [5 marks] b) Find the value of each destination operand after the following instruction is executed sequentially. Given value for D1=$12340000,D2=$AA11BB12, and D3 =$12005678. (i) MOVE.W DI, D2 (ii) CLR D2 (iii) EXG D2, D3 (iv) SWAP D1 (v) ADD.W $%100,D3 (vi) NOT.W D2 (vii) BSET.B #3,D3 [7 marks] c) Based on given programmed code, predict the value of D0, D1 and Conditional Code Register (CCR) flags after the following instructions are executed

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!