Question: Modify the solution.asm file so that the program can calculate the following: e = g + h + B [ 4 ] f = g
Modify the solution.asm file so that the program can calculate the following:
e g h B
f g AB
Describe how to allocate variables to registers as comments in the code. In the file data.asm, the variables g h and sequence A and B are defined. This file is included in the code file. Modify the variables as needed to test different inputs. But note that you must not change variable names etc. for the automatic tests to work! You may also not print any additional text to the console.
The code for data.asm:
data
g: word
h: word
A: word
B: word
The Solution code:
include "data.asm"
data
text
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
