Question: CCS 1. Loading and Storing Data Load two unique 8-bit values of your choice (specify them as HEX) into two registers (R0 and R1) and

CCS

1. Loading and Storing Data

Load two unique 8-bit values of your choice (specify them as HEX) into two registers (R0 and R1) and two unique 16-bit values of your choice (specify them as HEX) into two other registers (R2 and R3). HINT: use the load and store instructions to do this (e.g., load a value into a register use LDRB and LDR, and store from a register to a memory location using STRB and STR).

2. Understanding the CCR

Write code that will: 1) load register r0 with 0xFFFFFFFF and, 2) add 1 to r0 store the result back into r0. In your report, after execution indicate what is in register r0 and what relevant flags (i.e., N, Z, V, and/or C) are set in the PSR after execution?

3. Instruction Execution Cycle

Please use the commands LDR and STR to load and store a value of your choice. Then show in your screenshots the object code of these instructions. Finally, execute and show the relevant registers and memory locations in your screenshots. In your report, indicate how many cycles were needed to execute each instruction (i.e., this load will take an x amount of cycles, and this store will take a y amount of cycles).

Provide your program code here for each part of the work task. It must be provided as text, not an image.

1.Loading and Storing Data

2.Understanding the CCR

Instruction Execution Cycle

Screenshots

Provide your screenshots here for each part of the work task.

1.Loading and Storing Data

2.Understanding the CCR

Instruction Execution Cycle

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!