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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started