Question

Extra Credit: A characteristic of the ARM architecture is its predicated execution model. Instructions can be conditionally executed depending on the status flags on the CPU. For example, store can be conditionally executed by predicating the instruction with the lt suffix: strlt r2, Cro] #4. Predicated execution is not readily available in the Cortex-M series. For this purpose, the ARM v7-M architecture defines the it instruction. Describe the functionality of this instruction. Utilize this instruction to write a small routine that clears the .bss segment of a program. You may assume that the start address of the .bss segment is at bss start and the end address at bss-end

0 0
Add a comment Improve this question Transcribed image text
Answer #1

The IT instruction makes up to four following instructions (the IT block) conditional. The conditions can be all the same, or some of them can be the logical inverse of the others.

Syntax is ::

IT{x{y{z}}} {condition}

x: specifies condition switch for the 2nd instruction in the IT block

y: specifies condition switch for the 3rd instruction in the IT block

z: specifies condition switch for the 4th instruction in the IT block

condition: specifies condition for the 1st instruction in the IT block

The condition switch for the second, third and fourth instruction in the IT block can be either:

T :: Then. Applies the condition "condition" to the instruction

E :: Else. Applies the inverse condition of "condition" to the instruction

Add a comment
Know the answer?
Add Answer to:
A characteristic of the ARM architecture is its predicated execution model. Instructions can be conditionally executed...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT