Question: ELEC 2 2 2 0 Homework # 5 Due Friday, 8 - 2 8 - 2 0 2 4 STUDY: A table of how condition

ELEC 2220 Homework #5Due Friday, 8-28-2024STUDY: A table of how condition flags correspond to relational operators is included in the second page of this assignment, with references on where those are discussed in the text and in the Cortex-M User Guide.In testing the relationship A < B in the following control structure, where A and B are 8-bit integers, a CPU would compute A B (using twos complement arithmetic) and then test the resulting condition flags (Z, N, C, V) to determine which block of code to execute. if (A < B) Block1 else Block2In each of the following cases, determine the values of the four flags produced by computing A B. Then determine whether Block1 or Block2 of the above control structure would be executed for the specified data type, explaining how you determined this from the flags.1. Given: A =01000000 and B =01000000(1 point) Compute A-B and determine the values of flags Z, N, C, and V.(1 point) Which block would be executed if A and B are signed numbers? (1 point) Which block would be executed if A and B are unsigned numbers?2. Given: A =11000000 and B =01000000(1 point) Compute A-B and determine the values of flags Z, N, C, and V.(1 point) Which block would be executed if A and B are signed numbers? (1 point) Which block would be executed if A and B are unsigned numbers?3. Given: A =01000000 and B =11000000(1 point) Compute A-B and determine the values of flags Z, N, C, and V.(1 point) Which block would be executed if A and B are signed numbers? (1 point) Which block would be executed if A and B are unsigned numbers?4.(1 point) In which register of the CPU are the flags stored?

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 Finance Questions!