Question: Using Code Composer Studio, write an assembly program that will complete the following six steps with six instructions. 1) load register r0 with data value,

Using Code Composer Studio, write an assembly program that will complete the following six steps with six instructions.

1) load register r0 with data value, 0xFFFF.FFFE

2) use instruction add to add 1 to r0 and store the result back into r0.

3) use instruction add to add 1 to r0 again and store the result back into r0.

4) load register r0 with data value, 0xFFFF.FFFE again

5) this time, use instruction adds to add 1 to r0 and store the result back into r0. 5/7 6) use instruction adds to add 1 to r0 again and store the result back into r0.

In your report, after executing each instruction in your program, please indicate what is the content of register r0 and what relevant flags (i.e., N, Z, V, and/or C) are updated in the PSR after the execution of each instruction?

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!