Question: 1 ) In the second part, we see the instructions to read from input x and y , which are integers. . data x: .
In the second part, we see the instructions to read from input x and y which are integers.
data
x: word
y: word
text
main:
li $v # Read x
syscall
la $t x
sw $v$t
li $v # Read y
syscall
la $t y
sw $v$t
What are the instructions required to read x from input? Explain what happens in each instruction.
In which register is the value of x stored?
The instructions above read x and y as integers. What changes must you make to read x and y as strings.
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
