Question: i need help so i created this program which will be below but i need to revert this code to fit the prompt below f
i need help so i created this program which will be below but i need to revert this code to fit the prompt below
f g h i
instead of starting with the variables in registers, instead read the inputs from memory locations defined in a data section of your program, and output the result to another location in the data section.
Save the code in a file named hwasm,
Test the code using the RARS simulator to verify your code is written correctly.
Example of my old code
lw xx # Load g into register x
lw xx # Load h into register x
lw xx # Load i into register x
add x x x # Calculate g h
addi x x # Subtract from g h result in x
addi x x # Calculate i store in temporary register x
sub x x x # Subtract i from g h result in x
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
