Question: Only use ARM assembly language to answer! like add r0, r0, #1. I also accept a C program. But ARM assembly will be more helpful.

 Only use ARM assembly language to answer! like add r0, r0,

Only use ARM assembly language to answer! like add r0, r0, #1. I also accept a C program. But ARM assembly will be more helpful.

void set bit(int *data, int size, int desired, int setto) The function accepts a pointer to an array of integers and the size of the array in words. It sets or clears the desired bit, where desired is an integer bit number. If the value of setto is zero, set the bit to zero. If the value of setto is non-zero (any possible value), set the bit to a one. For example, suppose the function is passed these two values in the array. They are in binary as passed to the function, but I have expressed them as h here: exadecimal c4a16062 1d8ebb48 set bit(data, 2, 0, 0) will clear the the high order bit of the first value, changing it to 44a16062. set bit(data, 2, 31, 1) will set the low bit of the first value to true, changing the value to 44a16063. set_bit(data, 2, 32, 1) will set the high bit of the second word to true, changing the value to 9d8ebb48. Bits 0-31 are the first word, 32-63 are the second word, and sc on

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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!