Question: lab 0 1 _ multiply.asm - Notepad File Edit format View Help . data 0 1 0 0 0 0 0 0 0 . text

lab01_multiply.asm - Notepad
File Edit format View Help
.data 010000000
.text 0x00400000
main:
addi $8,$0,8
addi $9,$0,15
# multiplication of $8* $9$10
add $2,$0,$8
add $10,$0,$0
mulloop:
beq $2,$0, mulexit # if zero exit
addi $2,$2,-1
add $10,$10,$9
j mulloop
mulexit:
# multiplication loop is over,
# is the result in $10 correct?
sl1 $0,$0,
syscall
 lab01_multiply.asm - Notepad File Edit format View Help .data 010000000 .text

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!