Please help me out ASAP. Assembly language program. Please asap. Thank you Pleas
ID: 3893268 • Letter: P
Question
Please help me out ASAP. Assembly language program. Please asap. Thank you Please help me out ASAP. Assembly language program. Please asap. Thank you CS 2430 Final Exam Spring 2018 105 Points Total open book; 1-page notes; basic calculator allowed. Nam NetID Signature Email Problem #1 [25pts] Write a function that takes a single parameter N in $a0, then returns a result value in Sv0. This function finds the sum of all multiples of 5 and 7 between 1 and N (inclusive). For instance: . IfN-35, then result # 5 + 7 + 10 + 14 + 15 + 20 + 21 + 25 +28+30+35 .If N-13, then result 5+7+ 10Explanation / Answer
.text addMultiples: li $t5, 5 li $t7, 7 addi $t0, $a0, 0 li $v0, 0 while: check1: div $t0, $t5 mfhi $t1 bnez $t1, check2 add $v0, $v0, $t1 j adjust check2: div $t0, $t7 mfhi $t1 bnez $t1, check2 add $v0, $v0, $t1 adjust: addi $t0, $t0, 1 j while end: