ta asciiz asciiz : .asciiz Ext Lobl main "Enter the first number: " "Enter the second number: "The result is: " n: tuser input li Sve, 4 syscall li Sve, 5 syscall move $te, Sve li Sve, 4 Saв, х2 la syscall li Sve, 5 syscall #multiplication operation mult Ste, Sti $se, Sse, $s1 or #display result li Sve, 4 Saв, ans la syscall Sae, Sse move syscall d program Sve, 10 call # all done! .end main ========== of the options. Drag and drop the right statement in the assembly code li Sv0,1 mul $s1, Ss0, Ss0 li Sv0, 5 mfhi $s1 mfni $s0 mul $s2, $s1, $s3 move $s1, Ss0 la Sa0, x1 move $t1. Sv0 move $s0, Sa2

Microsoft Visual C#
7th Edition
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Joyce, Farrell.
Chapter2: Using Data
Section: Chapter Questions
Problem 9E: Malcolm Movers charges a base rate of $200 per move plus $150 per hour and $2 per mile. Write a...
icon
Related questions
Question
The following instructions will ask user to enter a number and produce the result where result = user_input * 100. Fill in the blank with appropriate instruction. Choose only from the options given at the bottom of this question
.data
х1:
.asciiz
"Enter the first number:
х2:
.asciiz
"Enter the second number: "
ans: .asciiz
"The result is: "
.text
-globl main
main:
tuser input
li
$ve, 4
syscall
li
Sve, 5
syscall
move
Ste, $ve
Sve, 4
Sae, x2
li
la
syscall
li
$ve, 5
syscall
#multiplication operation
mult
$te, $ti
or
$s8, $se, $s1
#display result
$ve, 4
Sae, ans
li
la
syscall
move
Sae, $se
syscall
tend program
li $ve, 10
syscall # all done! .end main
=========- ======
List of the options. Drag and drop the right statement in the assembly code
li Sv0,1
mul $s1, Ss0, $s0
li $v0, 5
mfhi $s1
mfhi $s0
mul $s2, $s1, $s3
move $s1, $s0
la Sa0, x1
move $t1, Švo
move $s0. Sa2
Transcribed Image Text:The following instructions will ask user to enter a number and produce the result where result = user_input * 100. Fill in the blank with appropriate instruction. Choose only from the options given at the bottom of this question .data х1: .asciiz "Enter the first number: х2: .asciiz "Enter the second number: " ans: .asciiz "The result is: " .text -globl main main: tuser input li $ve, 4 syscall li Sve, 5 syscall move Ste, $ve Sve, 4 Sae, x2 li la syscall li $ve, 5 syscall #multiplication operation mult $te, $ti or $s8, $se, $s1 #display result $ve, 4 Sae, ans li la syscall move Sae, $se syscall tend program li $ve, 10 syscall # all done! .end main =========- ====== List of the options. Drag and drop the right statement in the assembly code li Sv0,1 mul $s1, Ss0, $s0 li $v0, 5 mfhi $s1 mfhi $s0 mul $s2, $s1, $s3 move $s1, $s0 la Sa0, x1 move $t1, Švo move $s0. Sa2
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
File Input and Output Operations
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
Programming with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT