Question: Part1A: Write a program that starts with three integer values (stored in three registers using MOV) and then determines the largest value of the three
Part1A: Write a program that starts with three integer values (stored in three registers using MOV) and then determines the largest value of the three and stores that value into a fourth answer register. Do not change any of the values in the first three registers during your programs execution. So start your program with something like:
MOV R1, #34 MOV R2, #54 MOV R3, #21 MOV R0, #0 /* register to hold answer */
Part1B: Then Modify your code (separate from Part1A) so that it LOADS the N1, N2, N3 values from MEMORY into the registers. Use a label and a .data block to put these into three consecutive memory locations. Then store the answer into a fourth memory location immediately following the three original values; use a second label with a .skip directive or an initialized value to setup this location.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
