Question: . datacall 0 : . asciiz please enter first number : call 1 : . asciiz please enter second number : call 2 : .
datacall: asciiz "please enter first number :
"call: asciiz "please enter second number :
"call: asciiz "please enter the operation :
"call: asciiz "call: asciiz "call: asciiz xadmainoperation: space text main: li $v # display callla $a callsyscall # read inputli $vsyscallmov.s $fs$fs li $v # display callla $a callsyscall # read inputli $vsyscallmov.s $fs$fsli $v # display callla $a callsyscallli $v #giving options to usersla $a admainoperationla $asyscalllb $s$abeq $s abeq $s abeq $sq a a:add.s $f$f$f #sum li $v#printout sumsyscallli $v#end programsyscall a:mul.s $f$f$f # multiply valuesli $v#printout answersyscallli $v#end programsyscalla:li $vsyscall 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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
