
Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!

ec332 Name_______________________ Date________________________
Module 10b Due the next class meeting after the 2nd^ half of Module 10 is done in class.
Each of the sample code segments below has a MII>1. Why? Show your work for full credit.
loopA: ldh *a_m++, a ldh *b_m++, b add a,5,c mpy a,c,d
[b0] sub b0,1,b [b0] b loopA
loopB: ldw *a_m++, a ldw *b_m++, b mpysp a,b,prod addsp sum,prod,sum
[b0] sub b0,1,b [b0] b loopB
loopC: ldh *a_m++, a ldh *b_m++, b mpy a,c,c add b,c,d
[b0] sub b0,1,b [b0] b loopC
Note: addsp and mpysp are floating-point instructions that are like their integer counter parts, except their results don’t appear until 3 cycles later.