1. Engineering
  2. Computer Science
  3. find the shortest sequence of armv7m instructions that extracts bits...

Question: find the shortest sequence of armv7m instructions that extracts bits...

Question details

Find the shortest sequence of ARMv7M instructions that extracts bits 16 down to 11 from register r0 and uses the value of this field to replace bits 31 down to 26 in register r1 without changing the other bits of registers r0 or r1. (Be sure to test your code using r0 = 0 and r1 = 0xffffffff. Doing so may reveal a common oversight.)

Please explain steps and reasoning.

Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution