Question: . data Str 1 : . asciiz Enter first number Str 2 : . asciiz Enter second number Str 3 : . asciiz Enter operation
data
Str: asciiz Enter first number
Str: asciiz Enter second number
Str: asciiz Enter operation
text
main:
#print string Enter first number
#read integer into $s
#print string Enter second number
#read integer into $s
#print string Enter Operation
#read char into $s
#if goto ADD
#if goto SUB
#if goto MULT
#if goto DIV
ADD:
#$s add $s into $s
#print integer stored in $s
#END program
SUB:
#$s sub $s into $s
#print integer stored in $s
#END program
MULT:
#$s MULT $s into $s
#print integer stored in $s
#END program
DIV:
#$s DIV $s into $s
#print integer stored in $s
#END program
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
