What is the effect of executing STMIB r13!,{r0-r2,r4}? Draw a picture of the state of the stack pointed at by r13 before and after this operation.

What will be an ideal response?

This is a ‘store multiple registers’ instruction. The registers to be stored in memory are r0, r1, r2 and r4. They arestored on the stack pointed at by pointer register r13. The ‘IB’ suffix means ‘increment before’ and indicates thatthe stack pointer is incremented before each data movement. For example, the stack pointer is incremented by 4 and then used to access the first register which is then stored in memory. The ‘!’ symbol indicates that the stack pointer is to be modified after it has been used.

Computer Science & Information Technology

You might also like to view...

Which statement correctly completes the following code to begin a Tween rotation animation? imgRotate.startAnimation(AnimationUtils.loadAnimation ...

A. (this, R.anim.rotation)); B. .rotation(this.R.anim)); C. (R.anim.rotation, this)); D. .R.anim(rotation, this));

Computer Science & Information Technology

Information printed at the end of each group of records in a report that is most commonly used to display summary information is the

A. Group Header B. Page Footer C. Group Footer

Computer Science & Information Technology