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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started