Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

. 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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Students also viewed these Databases questions

Question

a. Did you express your anger verbally? Physically?

Answered: 1 week ago