Answered step by step
Verified Expert Solution
Question
1 Approved Answer
. 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started