Question: . datacall 0 : . asciiz please enter first number : call 1 : . asciiz please enter second number : call 2 : .

.datacall0: .asciiz "please enter first number :
"call1: .asciiz "please enter second number :
"call2: .asciiz "please enter the operation :
"call3: .asciiz "+"call4: .asciiz "="call5: .asciiz "x"admainoperation: .space 6.text main: li $v0,4 # display callla $a0, call0syscall # read inputli $v0,6syscallmov.s $fs1,$fs0 li $v0,4 # display call1la $a0, call1syscall # read inputli $v0,6syscallmov.s $fs2,$fs0li $v0,4 # display call2la $a0, call2syscallli $v0,8 #giving options to usersla $a0, admainoperationla $a1,6syscalllb $s2,($a0)beq $s2,'+', a0beq $s2,'*', a1beq $s2,'q', a2 a0:add.s $f12,$f1,$f2 #sum li $v0,2#printout sumsyscallli $v0,10#end programsyscall a1:mul.s $f12,$f1,$f2 # multiply valuesli $v0,2#printout answersyscallli $v0,10#end programsyscalla2:li $v0,10syscall Can u do this a machine code??

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!