Question: 3 . 4 The stm and 1 d m instructions include an optional ' ! ' after the address register. What does it do ?

3.4 The stm and 1dm instructions include an optional '!' after the address register. What does it do?
3.5 The following C statement declares an array of four integers, and initializes their values to 7,3,21, and 10, in that order.
int nums []={7,3,21,10};
(a) Write the equivalent in GNU ARM assembly.
(b) Write the ARM assembly instructions to load all four numbers into registers r, r5, r6, and r9, respectively, using:
i. a single 1dm instruction, and
ii. four 1dr instructions.
3.6 What is the difference between a memory location and a CPU register?
i speciaplly need solution for 3.4, and 3.5
 3.4 The stm and 1dm instructions include an optional '!' after

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

34 Explanation In ARM assembly the stm Store Multiple and ldm Load Multiple instructions can include ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!