subject

For this quiz, you must write an implementation of the function get_bit in ARM assembly language: int get_bit(int *data, int size, int desired); 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 hexadecimal here: c4a16062 Id8ebb48 set_bit(data, 2, 0, 0) will clear 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 so on. If a value is supplied to desired that is outside the range of possible values, do nothing (certainly, don't crash). The program quiz system is persistent, meaning your program will remain in the window below until the assignment closes.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 24.06.2019 17:40
Write a program to analyze student’s scores. each student’s id and 4 original test scores are saved in the attached file “student_id_scores.txt”. assume there are exactly 15 students in the class.• the program first opens the file, reads student’s ids and scores from the file and saves them in two arrays: o create a one-dimensional string array “ids” to store the student’s ids.o create a (parallel) two-dimensional int array “scores” to store student’s original test scores. this array has 5 columns, the original 4 test scores should be saved in the first 4 columns, and the last column will be used to save the average score after the calculation in next step.• the program then retrieves test scores from the array “scores”, calculates average score and determines the final letter grade based on the rules in the table below for each student. assume average score is integer value.average score = (score1 + score2 + score3 + score4) / 4average score letter grade90 ~ 100 a80 ~ 89 b70 ~ 79 c60 ~ 70 d0 ~ 60 f• the average score should be saved back in the 5th column of “scores” array.• create a new parallel one-dimensional char array “grades” to save each student’s letter grade.• program also needs to find the number of a, number of b, number of c, number of d and number of f grade. as well as the highest, lowest and average score of the class.• finally, program will display all of the original scores and all results on the computer screen using the format shown as the sample output below.• the program must contain at least the following functions: (1) a function “getscores” to read and store data into “ids” and “scores” arrays.(2) a function “analyzescores” to calculate student’s average score, determine letter grade, get the number of a, b, c, d and f, find the highest, lowest and average score of the class.(3) a function “displayresults” to display all of the results
Answers: 3
question
Computers and Technology, 24.06.2019 20:30
How is energy expended in active transport
Answers: 1
question
Computers and Technology, 25.06.2019 00:30
You are to write a series of steps that anyone could follow to solve the following three problems: 1. even odd a. assume that someone tells you a number (an integer number) b. you hear the number and respond with the word even or odd 2. average a. assume that someone tells you between 3 and 5 numeric values. b. you hear the numbers and respond with the average is some number 3. dog or cat a. explain to a child the differences between a dog and a cat. b. your explanation could be used by a child or anyone to distinguish the difference between a dog and a cat
Answers: 1
question
Computers and Technology, 25.06.2019 08:10
Why should the technician watch for signs of contamination in the oil when recovering refrigerant from a system
Answers: 3
You know the right answer?
For this quiz, you must write an implementation of the function get_bit in ARM assembly language: in...
Questions
question
Mathematics, 26.03.2020 00:03
question
Computers and Technology, 26.03.2020 00:03
question
History, 26.03.2020 00:03