Question: ( 4 0 pts ) Implement an Assembly code using the ARM Cortex - A instruction set that calculates the Carry flag ' C '
pts Implement an Assembly code using the ARM CortexA instruction set that calculates the
Carry flag and the Overflow flag for the addition instruction without the suffix.
Assume that your carry and overflow flags are variables in the data section named "Carry" and
"Overflow" respectively, set to by default. In the code text section, you will use ADD
instruction as given below without the suffix In other words, you will write the program that
calculates the C and V flags:
ADD r r r
Once you have calculated the Carry and Overflow flags, you must store your Carry and Overflow
values in the data section.
Hint: Check the L slides for the formal description of calculating the C and V flags. For memory
operations, check the L slides.
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
