Question: Write a TOY assembly language program to add the values of 3 variables, X, Y, and Z, in memory and store the sum in a
Write a TOY assembly language program to add the values of 3 variables, X, Y, and Z, in memory and store the sum in a fourth, W.
Details: The variables occupy consecutive words of memory starting with W. The address of W is in register $3. Register $4 contains the constant 1. Do not change the values in registers $0 through $4. Use registers $5 through $F as you please. Program should consist entirely of addition (add), load (l), and store (st) instructions.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
