CSE/EEE 230 – Bonus 1
Important: This is an individual assignment. Please do not collaborate.
Make sure to follow the academic integrity policies. Using work done by someone else will be
considered a violation of the academic integrity and will result in a report to the Dean’s office.
Your work should not match with anything found online.
Copying any part of this assignment, and providing them to another person or posting them on
the Internet without a permission of the instructor will be a violation of its copyright.
http://www.asu.edu/copyright/
No late submissions will be accepted.
Show all the steps including how you arrived at your solution to receive full credit.
There is one question that counts towards Bonus points, if you turn it in. It will be graded for
10 points and scaled down to 1 point.
Question: Show the execution of each line of the given MIPS Code for $s0 = 0xA till the code
reaches End.
Main:
ble $s0, $0, End
sub $a0, $s0, $0
Jal Func
J End
Func:
add $v0, $0, $0
Loop:
addi $v0, $v0, 1
srl $a0, $a0, 1
bgt $a0, $0, Loop
Ret:
End:
jr $ra