subject

5. Write assembly functions that implement the following C functions: a. uint64_t addU32_U64(uint32_t x, uint32_t y) // returns x+y
b. int64_t addS64(int64_t x, int64_t y) // returns x+y
c. int32_t convertS8ToS32(int8_t x) // converts 8-bit signed value to 32-bits
signed
d. int32_t convertU16ToS32(uint16_t x) // converts 16-bit unsigned value to
32-bits signed
e. int16_t maxS16(int16_t x, int16_t y) // returns the maximum of x, y
f. uint32_t maxU32(uint32_t x, uint32_t y) // returns the maximum of x, y
g. bool isGreaterThanU16(uint16_t x, uint16_t y) // returns 1 if x>y, 0 else
h. bool isGreaterThanS16(int16_t x, int16_t y) // returns 1 if x>y, 0 else
i. int32_t shiftRightS32 (int32_t x, uint8_t p) // returns x >> p = x*2^(-p) for
p = 0..31
j. uint16_t shiftU16(uint16_t x, int8_t p) // return x*2^p for p = -31..31
k. bool isEqualU16(uint16_t x, uint16_t y) // returns 1 if x=y, 0 if x!=y
l. bool isStrEqual(const char* str1, const char* str2) // returns 1 if the strings
are equivalent, 0 otherwise
m. void strCat(char* strTo, const char* strFrom) // concatenates strFrom to
the end of strTo (make sure that strTo contains enough room for strFrom
and strTo to prevent a seg fault)

Functions need to be written in ARM assembly language.

Raspberry Pi Assembly Language

All of the functions above should be present in a single file named hw2_prob5.s with functions callable from a C program. You do not need to submit the C files.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 15:00
Marissa is a high school student who wants to be a hydroelectric production manager. she talks to her guidance counselor about her education path, and the counselor says that she needs to get an associate’s degree from a four-year college and will follow that with significant on-the-job training. what error did the counselor make while advising marissa? marissa will not have on-the-job training. marissa also needs a three-year apprenticeship. marissa only needs to attend a two-year college. marissa needs a bachelor’s degree.
Answers: 1
question
Computers and Technology, 22.06.2019 12:30
Some of the first computer games were created in the early 1970s by college students experimenting after hours to see what the were capable of doing.
Answers: 3
question
Computers and Technology, 22.06.2019 14:30
Hi plz 11 ! when planning a table, what step comes first: "define the column headers" or "calculate the number of columns/rows"? a. calculate the number of columns/rows b. define the column headers
Answers: 1
question
Computers and Technology, 23.06.2019 01:20
Write a function balancechemical to balance chemical reactions by solving a linear set of equations. the inputs arguments are: reagents: symbols of reagents in string row array products: symbols of products in string row array elements: elements in the reaction in string row array elcmpreag: elemental composition of reactants in two dimensional numeric array elcmpprdcts: elemental composition of prducts in two dimensional numeric array hint: the first part of the problem is setting up the set of linear equations that should be solve. the second part of the problem is to find the integers from the solution. one way to do this is to mulitiply the rational basis for the nullspace by increasing larger integers until both the left-and right-side integers exist. for example, for the reaction that involves reacting with to produce and : reagents=["ch4", "o2"]; products =["co2", "h2o"]; elements =["c","h", "o"] elcmpreag=[1,4,0;
Answers: 3
You know the right answer?
5. Write assembly functions that implement the following C functions: a. uint64_t addU32_U64(uint32...
Questions
question
Mathematics, 23.10.2020 21:50
question
Spanish, 23.10.2020 21:50
question
Mathematics, 23.10.2020 21:50
question
Mathematics, 23.10.2020 21:50
Questions on the website: 13722367