Question: Can you help code these two problems in Arm assembly code for cortex - M 4 . I have also provided the part 1 from
Can you help code these two problems in Arm assembly code for cortexM I have also provided the part from lab
points Your inputs are three different wordlength numbers that your program
will place in registers rr Your program will be responsible for adding three bit
values that it will extract from registers as follows: loworder bits bits from r
middle bits bits from r and highorder bits bits from r Place the
sum in register rThe sum may be more than bits long. For example, if you are
given the following inputs:
rxFDB rxFE rxCB
then the sum stored in should be sum of the values shown in bold above, that is the
sum of DB and This sum is that Intro: The purpose of this lab exeercise is to practice using memory instructions.
Background: You can use the AREA directive to define sections of code, data, and stack.
In this experiment, you will construct one data area. This will be a readwrite area with
variables initialized to zero that will receive the output data. For the CortexM static
RAM readwrite memory is from address to address xFFF FFFF This
gives GB of RAM.
You will also store readonly input data in the same section as your code.
Besides correctness, programs will also be evaluated for:
Efficient use of registers
Efficient use of instructions
Assignment:
points Convert part from Lab to take its inputs from memory and store its
sum to memory instead of to a register. Declare three words of input data in the same
section as your code; they will form an array of three words starting at variable silver.
You may use preindexed or postindexed addressing. Store your final sum into memory
in the readwrite data section into a word at variable bronze.
points Write a program that will exclusiveOR each element of array brown with a
word held at variable bitmask and store the result in array green. Assume that each array
holds five words. That is implement the following.
for
green brown bitmask
Your programs should work for test inputs that will be given by your lab TA to receive
full credit.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
