Question: Notes: All of your work should be submitted using the appropriate link in Blackboard. . For each program, please submit an appropriate .S file. o

 Notes: All of your work should be submitted using the appropriate
link in Blackboard. . For each program, please submit an appropriate .S

Notes: All of your work should be submitted using the appropriate link in Blackboard. . For each program, please submit an appropriate .S file. o Code submitted in other formats (for example, pasted into a .txt or .docx file) will not be accepted. Your submission for each question must be in a single file, so you will submit 3 files in total. Archive files will not be accepted. This assignment is worth 100 points. For this assignment, you must submit three short programs testing your understanding of program control instructions I strongly encourage you to run your completed program into an MPLAB project to verify its correctness. Code that does not properly assemble will lose a significant number of points. Each program operates on variables created at the start of the program, to which I've assigned initial values for you to test. Programs that work only for the initial values will lose pointsyou should write general programs that work for any values. I suggest changing the variable values to test different scenarios in the first two programs. 1 (35 points) Implement the conditional statement shown below (A, B, X and Y are variables). Assume A =10, B = 6. Initial values of X, Y are 0. if (x B) { X = Y - A; else ( X = Y + 4; Y = x + 4; } Assignment continued on next page 2 (35 points) Implement the loop shown below (A, B, X and Y are variables). Assume A, B = 60. Initial values of X, Y are 0. while ((X B) { X = Y - A; else ( X = Y + 4; Y = x + 4; } Assignment continued on next page 2 (35 points) Implement the loop shown below (A, B, X and Y are variables). Assume A, B = 60. Initial values of X, Y are 0. while ((X

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!